parseVariant

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.

bool
parseVariant

Parameters

str string

a string to parse.

variant pango.types.Variant

a pango.types.Variant to store the result in.

warn bool

if true, issue a g_warning() on bad input.

Return Value

Type: bool

true if str was successfully parsed.