PgMiscellaneous.parseStyle

Parses a font style. The allowed values are "normal", "italic" and "oblique", case variations being ignored.

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

Parameters

str string

a string to parse.

style PangoStyle

a PangoStyle 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