Function pango::parse_stretch

source ·
pub fn parse_stretch(str: &str, warn: bool) -> Option<Stretch>
Expand description

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.


a string to parse.


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


true if @str was successfully parsed.


a Stretch to store the result in.