I want to embed a custom font into my JUCE project.
I added the OTF file as a resource and i’m using Typeface::createSystemTypefaceFor() to load the font.
so far everything is working fine on macOS. but when trying to run this on windows i don’t get the right font!
but changing the Font from OTF to TTF on windows solved the problem. is it not possible to use OTFs on windows? or am i doing something wrong? whats the best font format the works on windows and macOS?
Yeah, we’ve heard about this from various sources. Seems that there’s some quirk in the Windows font engine that stops OTFs working when loaded from memory. Don’t know of any workaround other than changing the file type, I’m afraid!