parseVariant
fn
bool parseVariant(string str, out pango.types.Variant variant, bool warn)Parses a font variant.
The allowed values are "normal", "small-caps", "all-small-caps", "petite-caps", "all-petite-caps", "unicase" and "title-caps", case variations being ignored.
Parameters
str | a string to parse. |
variant | a [pango.types.Variant] to store the result in. |
warn | if true, issue a g_warning() on bad input. |
Returns
true if str was successfully parsed.