PgMiscellaneous.parseVariant

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

struct PgMiscellaneous
static
bool
parseVariant
(
string str
,,
bool warn
)

Parameters

str string

a string to parse.

variant PangoVariant

a glib.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.