parseWeight

fnbool 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

stra string to parse.
weighta [pango.types.Weight] to store the result in.
warnif true, issue a g_warning() on bad input.

Returns

true if str was successfully parsed.