parseStyle

Parses a font style.

The allowed values are "normal", "italic" and "oblique", case variations being ignored.

bool
parseStyle
(
string str
,,
bool warn
)

Parameters

str string

a string to parse.

style pango.types.Style

a pango.types.Style 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.