How to use a font TTF

Hello,

how to use a font TTF ?

Thanks

solved

var fontAsset = Assets.getFont("assets/MISTRAL.TTF");

in textFormat : “fontAsset.fontName”

You can set your topic as “solved” (there is a checkbox near the heart icon).

You can also use the name of your font (as you would in ActionScript), such as “Mistral Regular”, and it should work consistently