Closed vegeta897 closed 7 years ago
Hi, thanks for reporting this!
It seems node-canvas
on Windows does not support TrueType fonts. I was developing on Linux so haven't noticed this before. I've fixed this issue in v1.0.2 (#2 ) by using a fallback on a standard font if Canvas.Font
is not available. The font I'm currently using as a fallback doesn't look as good as Source Sans Pro and I will try to find a better looking one once I have a free moment.
No rush from me, I've already applied a local workaround by just installing that font and skipping the font loading code.
Maybe you could add font face as a config property?
Edit: I just noticed your fix actually accomplishes the same thing as my workaround, so that's great.
Using the example script, upon initializing this error comes up: