Function pango::functions::parse_variant[][src]

pub fn parse_variant(str: &str, warn: bool) -> Option<Variant>
Expand description

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.

Returns

true if str was successfully parsed.

variant

a Variant to store the result in.