Custom font not showing
-
Hi all, I'm using a custom font but it's not displaying. I've placed the font in the project folder under Images/Fonts. Here's what I'm writing:
Engine.loadFontAs("{PROJECT_FOLDER}Fonts/AvenirNextFont.ttf", "AvenirNextFont"); Engine.setGlobalFont("AvenirNextFont");
What am I missing?
-
@paper_lung said in Custom font not showing:
Hi all, I'm using a custom font but it's not displaying. I've placed the font in the project folder under Images/Fonts. Here's what I'm writing:
Engine.loadFontAs("{PROJECT_FOLDER}Fonts/AvenirNextFont.ttf", "AvenirNextFont"); Engine.setGlobalFont("AvenirNextFont");
What am I missing?
nothing. - but you ill need to refer to it in your code - our set the font in your interface.
-
@Lindon Thanks. I'm mainly doing this for the MIDI assignment menu (right click on any control) as I'm using images for the rest of the UI, any ideas how I reference that?
-
@paper_lung you may well need to LAF that, if its available...
-
@Lindon That's it, thanks. For reference this is what I added:
const var laf = Engine.createGlobalScriptLookAndFeel(); laf.setGlobalFont("AvenirNextFont", 15.0);