loadFonts is deprecated ???
-
hello !
as said the title the Engine.loadFonts is deprecated and tells that it will be replaced by loadFontsAs.
Well.
but when typing loadFontsAs(...)i have an error telling that argument number mismatch.
-
@staiff Yes loadFont is deprecated because it caused issues with font naming between different OS. To use
loadFontAs
you need to pass a name as the second parameter - this can be any name you want. - https://forum.hise.audio/topic/160/fonts/4 -
Engine.loadFontAs("{PROJECT_FOLDER}Fonts/Bordeaux.ttf", Bordeaux.ttf); = error.
still not understand... -
@staiff Try
Engine.loadFontAs("{PROJECT_FOLDER}Fonts/Bordeaux.ttf", "Bordeaux");
-
i did: File not found ;)
-
@staiff said in loadFonts is deprecated ???:
i did: File not found ;)
Where have you put the
Bordeaux.ttf
file? -
in the image folder as explained here: http://hise.audio/manual/ScriptPanel.php
section 1.1.4: fonts.
OoooooooooooooooooooKayyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy :/
Images folder + Fonts folder INSIDE images folder. Not directly inside Image folder....