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

Build chrome with non-latin characters support #4

Closed
mxcoder opened this issue Nov 18, 2018 · 3 comments
Closed

Build chrome with non-latin characters support #4

mxcoder opened this issue Nov 18, 2018 · 3 comments

Comments

@mxcoder
Copy link

mxcoder commented Nov 18, 2018

Hi @alixaxel , thanks a lot for your work, its been really useful and easy to use.

Although I have one request, could you give me some pointers to build chrome with support for japanase, korean, chinese, etc and other non-latin characters? While using puppeteer + chrome-aws-lambda on some japanase pages, when I take a screenshot, characters are not correctly rendering:

image

I'm guessing I'd need to tweak the ansible play, then run it to get the expected build. But it might be beyond my experience, I'll try tho, so if you have any pointers I'd appreciate it, if possible I'll try to submit the corresponding PR.

@mxcoder
Copy link
Author

mxcoder commented Nov 18, 2018

Nevermind, found the solution :)
Pretty much this comment and the following 2: adieuadieu/serverless-chrome#49 (comment)

Thanks again

@mxcoder mxcoder closed this as completed Nov 18, 2018
@kirilledelman
Copy link

@mxcoder
I'm also struggling with this: adieuadieu/serverless-chrome#49 (comment)

Where do I put .fonts directory?

Is Chrome supposed to use the fonts in this dir as fallback if the font on the page it's rendering doesn't contain the characters?

Thank you.

@mxcoder
Copy link
Author

mxcoder commented Dec 3, 2018

Hi @kirilledelman , yes! just put the .fonts file in the root of your zip package that you upload to lambda.
At least, I didn't do anything else. You might need to test different formats, but for me .otf fonts worked fine.

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

No branches or pull requests

2 participants