Using custom fonts.
-
What is involved in that exactly , do i place them in the Images/fonts and thats it or do I need to install them separately and if there a difference in dealing with that on PC and Mac ?
-
Put them in images/fonts and use loadFontAs to avoid issues with different platforms - https://docs.hise.audio/scripting/scripting-api/engine/index.html#loadfontas
-
Excellent ! Thanks
-
@d-healey How can I then use this font , the name does not appear in the font list.
I have successfully loaded it with Engine.loadFontAs("{PROJECT_FOLDER}Aaargh.ttf", "AAA");
I was expecting to the see AAA in the font list.
Also, if i write Engine.setGlobalFont("AAA") does it then become the default font in the font selector window ?
i would expect that but it does not seem to be the case ? -
@lalalandsynth
Place The Fonts In A Folder And Rename It To "Fonts"
Then Call It At The Beginning Of Your ScriptEngine.loadFontAs("{PROJECT_FOLDER}Fonts/YOURFONT.ttf", "YOURFONTNAME");
And Select It In Property Editor
Also You Can Use That Font To Act As A Global / Default Level By Using Below Code:Engine.setGlobalFont("YOURFONTNAMEHERE");
Important Note: It Won't Show Up Until You Save Your Project Xml And Then Close / Reopen HISE.