PgMiscellaneous.parseVariant

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

class PgMiscellaneous
static
int
parseVariant
(
string str
,,
int warn
)

Parameters

str string

a string to parse.

variant PangoVariant

a PangoVariant to store the result in.

warn int

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

Return Value

Type: int

TRUE if str was successfully parsed.

Meta