Parses a font weight.
The allowed values are "heavy", "ultrabold", "bold", "normal", "light", "ultraleight" and integers. Case variations are ignored.
str |
a string to parse. |
weight |
a `PangoWeight` to store the result in. |
warn |
if true, issue a warning on bad input. |
true if |