Why when I build my VST and then use it on another computer, the font's don't show up as the correct ones I chose?
-
I put the preset browser font as copper plate CC, but when I go on the internet and download a copper plate cc and move it along with my vst.3 file, then Install the copperplatecc.ttf file it doesn't update my preset browser to that file, the preset browser stays on the default font, but whenever I use the vst on the laptop I built it on, the font shows, please help me fix this or work around it
-
@duma You need to put the font in your project's Images folder and load it from there.
Then it will be bundled in the plugin and available on all systems.
https://docs.hise.dev/scripting/scripting-api/engine/index.html#loadfontas
-
@dannytaurus So once thats done do i re export the vst move it to the other laptop along with the font ttf and install the ttf then install the plugin then it should work?
-
@dannytaurus Please make a video on how I should do It, I seem to be doing something wrong on my end
-
Put the ttf into your project's Images folder.
In your script load the font with
Engine.loadFontAs()That should be it. You don't need to copy or install the font on the destination system it will be embedded in the plugin.
-
@David-Healey so I just need to copy the Engine.loadFontAs?? or do I need to add stuff
-
@duma You need to use that function in your script - https://docs.hise.dev/scripting/scripting-api/engine/index.html#loadfontas
It takes two parameters, the first is the path to the font
"{PROJECT_FOLDER}MyFont.ttf"the second is a name you want to give the font for use in your script, this is usually the same as the font name but doesn't have to be, it's just an ID for scripting. -
-
@duma
"{PROJECT_FOLDER}"is a wildcard https://docs.hise.dev/working-with-hise/project-management/index.html#project-folder-wildcard -
@David-Healey ok so when u say this is embedded in the plugin, does that include the labels using the esame font?
-
@duma Yes should do

