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.

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

Parameters

str string

a string to parse.

stretch PangoStretch

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