Function
Pangoparse_variant
since: 1.0
Declaration [src]
gboolean
pango_parse_variant (
const char* str,
PangoVariant* variant,
gboolean warn
)
Description [src]
Parses a font variant.
The allowed values are “normal”, “small-caps”, “all-small-caps”, “petite-caps”, “all-petite-caps”, “unicase” and “title-caps”, case variations being ignored.
Available since: 1.0
Parameters
str-
Type:
const char*A string to parse.
The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string. variant-
Type:
PangoVariantA
PangoVariantto store the result in.The argument will be set by the function. The caller of the function takes ownership of the data, and is responsible for freeing it. warn-
Type:
gbooleanIf
TRUE, issue ag_warning()on bad input.