font_get_sdf_enabled

This function returns whether SDF Rendering is enabled for the given font or not.

 

Syntax:

font_get_sdf_enabled(ind);

ArgumentTypeDescription
indFont AssetThe index of the font to check

 

Returns:

Boolean

 

Example:

var _sdf_enabled = font_get_sdf_enabled(fnt_title);
show_debug_message("SDF rendering is {0} enabled for fnt_title", _sdf_enabled ? "" : "not");

The above code checks if SDF rendering is enabled for the font fnt_title and stores the value in a variable _sdf_enabled. It then shows a readable debug message showing the result.