Syntax
Weight = TextGetWeight(Text)
Description
Retrieves the current font weight setting (boldness) for the specified text object.
Parameters
Text
The handle of the text object whose weight is to be retrieved.
Return Value
Returns the current font weight constant (e.g., #PG_Text_Weight_Normal, #PG_Text_Weight_Bold). Returns #False (0) if the text handle is invalid (note: the numeric value for #PG_Text_Weight_Normal is 400, not 0).
See Also
CreateText, TextSetWeight, TextGetStyle
Supported OS
Windows, Linux