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 #PangoVariant 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.

Meta