PgMiscellaneous.parseStretch

Parses a font stretch. The allowed values are "ultra_condensed", "extra_condensed", "condensed", "semi_condensed", "normal", "semi_expanded", "expanded", "extra_expanded" and "ultra_expanded". Case variations are ignored and the '_' characters may be omitted.

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

Parameters

str string

a string to parse.

stretch PangoStretch

a PangoStretch to store the result in. [out caller-allocates]

warn int

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

Return Value

Type: int

TRUE if str was successfully parsed.

Meta