Other items inpango
pub fn parse_variant(str: &str, warn: bool) -> Option<Variant>
Parses a font variant. The allowed values are “normal” and “smallcaps” or “small_caps”, case variations being ignored.
str
a string to parse.
warn
if true, issue a g_warning() on bad input.
true
g_warning()
true if str was successfully parsed.
variant
a Variant to store the result in.
Variant