Function pango::functions::parse_style

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

Parses a font style.

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

str

a string to parse.

warn

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

Returns

true if @str was successfully parsed.

style

a Style to store the result in.