parse_variant


Description:


public bool parse_variant (string str, out Variant variant, bool warn)

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.

Parameters:

str

a string to parse.

variant

a `PangoVariant` to store the result in.

warn

if true, issue a warning on bad input.

Returns:

true if str was successfully parsed.


Namespace: Pango
Package: pango



2022 vala-language.org