Custom font in WIN vs macOS
-
Hi!
I’m trying to compile the same plugin on both Mac and Windows. I’ve noticed that the issue is probably related to path separators — macOS uses / while Windows uses \ . However, when I change it, the code editor throws an error. How can I handle this?Engine.loadFontAs("{PROJECT_FOLDER}Fonts\BrittiLight.ttf","BrittiRegular"); Engine.setGlobalFont("BrittiRegular"); -
@pelle Use
/on both systems.@pelle said in Custom font in WIN vs macOS:
However, when I change it, the code editor throws an error.
Don't tease us, tell us what the error is :p
-
@David-Healey Solved! I've simply moved the font outside the font folder and removed the "Font/".