How is the font distributed in the final product?
-
This post is deleted! -
@Mighty23 Place your font in the image folder of your project, then use
Engine.loadFontAs()
.
The font will be embedded in the binary:
https://docs.hise.audio/scripting/scripting-api/engine/index.html#loadfontas -
@ustk thanks; What is "fontID" ?
-
@Mighty23 It's a name you can use within your script to refer to the font. Make it something meaningful. I usually use names like "regular", "bold", "medium", etc.
-
@d-healey ok, it make sense.
I still can't figure out the workflow. I added myfont.ttf to the images folder and added:
Engine.loadFontAs(myfont.ttf, medium);
I have an "undefined parameter error".
-
-
@Mighty23 said in How is the font distributed in the final product?:
Engine.loadFontAs(myfont.ttf, medium);
Engine.loadFontAs("myfont.ttf", "medium");
-
-
-