font_get_texture

This function returns a special pointer for the font texture page.

This value can then be used in other draw functions, particularly in general drawing when using primitives as well as the Shader functions. You can get more information about the returned texture page using the different texture_* functions on the Textures page.

NOTE On HTML5, this returns a struct instead of a texture pointer, as a pointer cannot be used on that platform. However this does not change the use of the returned value, as its usage in texture functions still remains the same.

 

Syntax:

font_get_texture(font);

 

ArgumentTypeDescription
fontFont AssetThe font to use.

 

Returns:

Texture

 

Example:

tex = font_get_texture(fnt_Main);

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