parse_variant


Description:


public bool parse_variant (string str, out Variant variant, bool warn)

Parses a font variant.

The allowed values are "normal" and "smallcaps" or "small_caps", case variations being ignored.

Parameters:

str

a string to parse.

variant

a `PangoVariant` 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