The Field_SetFontStyle() function sets the style of the font used for a field.
Field_SetFontStyle(text_field, style)
• text_field – The field for which the font style will be set.
• style – An integer corresponding to one of the following constants:
Constant |
Description |
---|---|
FONT_STYLE_PLAIN |
Plain |
FONT_STYLE_BOLD |
Bold |
FONT_STYLE_ITALIC |
Italic |
FONT_STYLE_UNDERLINE |
Underline |
You can apply multiple styles to a field by adding the style constants together. For example, to specify bold and underline, use FONT_STYLE_BOLD + FONT_STYLE_UNDERLINE.
A boolean. True indicates the font style was set, while false indicates it was not.