Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing fonts in docker container? #109

Closed
jennifer-shehane opened this issue May 16, 2019 · 3 comments · Fixed by #111
Closed

Missing fonts in docker container? #109

jennifer-shehane opened this issue May 16, 2019 · 3 comments · Fixed by #111

Comments

@jennifer-shehane
Copy link
Member

I may be wrong, but I think this issue stems from our docker container.

We are adding support for the Chinese language to our documentation. The fonts render fine within Cypress in Chrome and Electron when run in interactive mode. They also render fine when run through cypress run --headed.

But, when I review the video of the test run from CircleCI (using Docker container), the language encoding is messed up as shown below.

Screen Shot 2019-05-16 at 4 38 48 PM

Dashboard Video: https://dashboard.cypress.io/#/projects/ma3dkn/runs/7644/failures/ab5e5499-23fe-455c-971f-70c6e0944999
CircleCI: https://circleci.com/workflow-run/0cf41b27-5f4f-4eb3-aa08-d0f64ea7c35e
circle.yml: https://github.com/cypress-io/cypress-documentation/blob/develop/circle.yml#L1

@bahmutov
Copy link
Contributor

I will need to run the tests in our Docker container, probably yes missing fonts

@bahmutov
Copy link
Contributor

work in progress

Screen Shot 2019-05-16 at 12 36 07 PM

@VincentWang-shopback
Copy link

VincentWang-shopback commented Feb 24, 2020

Hi, I found that Chinese fonts added in cypress/base:8.16.0 do not support for Traditional Chinese, it only support for Simplified Chinese.
I suggest to add font fonts-wqy-zenhei which can support both Traditional and simplified Chinese, and It works for me when I add following codes in my dockerfile.
RUN apt-get -qqy update \ && apt-get -qqy --no-install-recommends install fonts-wqy-zenhei \ && rm -rf /var/lib/apt/lists/* \ && apt-get -qyy clean

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants