-
Notifications
You must be signed in to change notification settings - Fork 37
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
Using default fonts #6
Comments
node-canvas's parsing of You may give a try. |
In my experience, node-canvas's font rendering is always different from browser. I guess it's caused by cairo, the 2d graphics lib used by node-canvas. |
Hm, I am using: |
I have made a quick check of canvg's source codes, and found the font style is not double quoted in canvg. I have fixed it here : fuzhenn/canvg@623676a You can update your canvg and make another try. |
Hm, I tried it but in my particular case I do not see a difference. It might that |
Yeah, i guess, And I'll update node-canvas to 2.0 once it's stable and released, maybe it can fix it. |
I had the same problem on a project runing on AWS lambda, se solution was: |
It seems default fonts canvas 1 is using are pretty limited and do not really match those available in the browsers, even on the same system. So SVG rendered in the browser is different from a PNG rendered with this library it SVG contains text.
The text was updated successfully, but these errors were encountered: