Text in a Panel
-
@d-healey what's the fontID in the "loadFontAs"or how can i call this function correctly?
So that it can load the font.The "loadFont" here on mac is Depreciated.
-
so something like
Engine.loadFontAs("{PROJECT_FOLDER}Fonts/mycoolfont.ttf", "My Cool Font");
-
@dustbro Is {PROJECT_FOLDER} a default text or I should replace it with the file path? I've just copy/paste that and replaces the font name, but it says "file not found".
Thanks
-
@nesta99 put the font you require in the images folder, and then leave {PROJECT_FOLDER} alone
-
{PROJECT_FOLDER} = Image folder
-
@dustbro @Lindon
Thanks for the help.But, I mean, is my computer dumb? ahah :D
I don't know why but still tell me that the file is not found. here are two Images, the first one where i have the .ttf file in the images folder and second I have the code. I don't know what's missing now.
-
@nesta99
i have the .ttf file in the images folder
Is it in the images folder or in a folder called Fonts in the images folder?
-
@d-healey In the images folder.
-
@nesta99 Then why are you using
{PROJECT_FOLDER}Fonts/...
as the path ;) -
@d-healey
It's so true.
Thanks David. I'm learning all this by doing ahaha, so things that you may take as granted, It will take hours for me.You're a lifesaver man!
Hope to be good at scripting like all of you guys here!!