PgMiscellaneous.parseStyle

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

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

Parameters

str string

a string to parse.

style PangoStyle

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