font_get_italic

Returns whether a given font is italic or not.

Syntax:

font_get_italic(ind);


Argument Description
ind Index of the font to check.


Returns: Boolean


Description

With this function you can check any font asset to see if it has the italic flag or not. If it does the function will return true, otherwise it will return false.


Example:

if font_get_italic(fnt_Main)
   {
   draw_set_font(fnt_Main);
   }

This will set the active drawing font to fnt_Main if it is set as italic in its font properties.


Back: Fonts
Next: font_get_bold
© Copyright YoYo Games Ltd. 2018 All Rights Reserved