This function returns whether SDF Rendering is enabled for the given font or not.
font_get_sdf_enabled(ind);
Argument | Type | Description |
---|---|---|
ind | Font Asset | The index of the font to check |
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.