The text works except for the font. I get this error:
Could not open font "sans-serif" in file "/fontDir/OpenSans-Regular.ttf". Error: ENOENT: no such file or directory, open '/fontDir/OpenSans-Regular.ttf'
I've tried using .preloadFonts() as well as .font({family: "Jersey M54"). I've also tried setting the config properties both before creating and right before registering the window. It's really hard to know what's going wrong because there's not really any documentation and the other Github issue that is similar to this is from an older version of the library.
Yoi create a text element and set the font afterwards. So it first tries to use the default font which it can't find in the font folder. That's why it throws
I followed the Readme for setting the font like so:
The text works except for the font. I get this error:
I've tried using
.preloadFonts()
as well as.font({family: "Jersey M54")
. I've also tried setting theconfig
properties both before creating and right before registering the window. It's really hard to know what's going wrong because there's not really any documentation and the other Github issue that is similar to this is from an older version of the library.