parse_weight


Description:


public bool parse_weight (string str, out 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 `PangoWeight` to store the result in.

warn

if true, issue a warning on bad input.

Returns:

true if str was successfully parsed.


Namespace: Pango
Package: pango