parseWeight
fn
bool parseWeight(string str, out pango.types.Weight weight, bool warn)Parses a font weight.
The allowed values are "heavy", "ultrabold", "bold", "normal", "light", "ultraleight" and integers. Case variations are ignored.
Parameters
str | a string to parse. |
weight | a [pango.types.Weight] to store the result in. |
warn | if true, issue a g_warning() on bad input. |
Returns
true if str was successfully parsed.