doesn't support font-family property with multiple value
See original GitHub issueUsing 0.5.0-beta4, thanks so much for this great module!
The problem I am having is, say I have a class
.class { font-family: "somefont", "Arial" }
where “somefont” doesn’t apply, the end result is elements that are .class would be rendered using Arial in the page, but in the canvas the default font is applied instead.
Any idea?
Issue Analytics
- State:
- Created 8 years ago
- Comments:8 (1 by maintainers)
Top Results From Across the Web
Multiple fonts in Font-Family property? - Stack Overflow
Yes. The font-family property can hold several font names as a "fallback" system. If the browser does not support the first font, ...
Read more >font-family - CSS: Cascading Style Sheets - MDN Web Docs
The font-family CSS property specifies a prioritized list of one or more font family names and/or generic family names for the selected element....
Read more >font-family - CSS-Tricks
The font-family property defines the font that is applied to the selected element. The font that is selected is not a single font...
Read more >CSS font-family property - W3Schools
The font-family property can hold several font names as a "fallback" system. If the browser does not support the first font, it tries...
Read more >CSS Font Family List - TutorialBrain
Browsers do not support all the fonts, so you need to use multiple fonts to be on safer side. CSS font-family defines the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I found the reason: parent of canvas has to have explicit font declaration like so:
.container { font-family: Roboto, "Helvetica Neue", sans-serif; }
not work, I got the same error
rendered by
Custom loaded fonts from server (not CORS) is not render. Used font — based64 css file as font-face to Liberation Serif