Returns the texture id for the given font.


GML Code Example


Argument Description
font The index of the font to use.

Returns: Pointer


This function returns a special pointer for the font texture. This value can then be used in other draw functions, particularly in general 3D and some of the 2D primitive functions, as well as the Shader functions.


GML Code Example

tex = font_get_texture(fnt_Main);

The above code will get the texture pointer for the font indexed as "fnt_Main".

Back: Fonts

No Examples Submitted

Does this page need better examples? Be the first to Submit

No Edits Suggested

Is this page unclear or not descriptive enough? Suggest an edit to the page and with enough upvotes your changes will be made.

No Questions Have Been Ask

Do you have a question about this page? Ask it Here