Announcement
Collapse
No announcement yet.
Using ttf files directly
Collapse
X
-
Ahh.. so it kinda temporarly adds that font to the system fonts lists without installing it. Clever. Thanks.
-
I suppose this question is for Windows platform. In Windows GDI, there are functions such as AddFontResourceEx and AddFontMemResourceEx that you can use to load the font from an external file (e.g. "MyFontArial.ttf"), or directly from memory (e.g. if you embedded the font file with the application). Once one of these calls succeeds, you can just use the font name as usual in Afterwarp functions, e.g. "MyFontArial".
Leave a comment:

Leave a comment: