PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

How to use ttf fonts?

How do I load and use a TTF font, or is this impossible?
Hi,

Here is a quick example. It came from the editor project and is a good example if you are talking about windows controls.

Code:
FontFace$ = "Courier New";
FontSize$ = 12;
// Set font
fnt$ = NewFont(form$, FontFace$, FontSize$, false, false, false);
SetFont(Control$, fnt$);


On the other hand, if you are talking about using it for a game, there are calls that support this in the game API. Look at FontDemo.ppl for an example.

bmanske
Thanks for the response bmanske,

No, I was specifically taking about Games. FontDemo.PPL is very very basic. I have actually made my own demo that shows much more with fonts. THere were originally bugs in the font calls. However, I am still having problems trying to load TTF fonts. I don't know it they are supported. I hope so.
I'm not sure if TTF fonts are supported in the GameAPI? Bitmapped fonts are much faster, additionally.
I figured it all out. Thanks
Did you figure out how to use TTF with the game api? Can you give us a quick example?

bmanske