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.
str |
a string to parse. |
variant |
a `PangoVariant` to store the result in. |
warn |
if true, issue a warning on bad input. |
true if |