font_get_texture

Returns the texture id for the given font.

Syntax:

font_get_texture(font);


Argument Description
font The index of the font to use.


Returns: Pointer


Description

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.


Example:

tex = font_get_texture(fnt_Main);

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


Back: Fonts
Next: font_get_uvs
© Copyright YoYo Games Ltd. 2015 All Rights Reserved