Syntax
Style = TextGetStyle(Text)
Description
Retrieves the current font style setting (normal, italic, or oblique) for the specified text object.
Parameters
Text
The handle of the text object whose style is to be retrieved.
Return Value
Returns the current font style constant:
#PG_Text_Style_Normal
#PG_Text_Style_Oblique
#PG_Text_Style_Italic
Returns #False (0) if the text handle is invalid (note: 0 corresponds to #PG_Text_Style_Normal, the default).
See Also
CreateText, TextSetStyle, TextGetWeight
Supported OS
Windows, Linux