variationFromString

Parses a string into a #hb_variation_t.

The format for specifying variation settings follows. All valid CSS font-variation-settings values other than 'normal' and 'inherited' are also accepted, though, not documented below.

The format is a tag, optionally followed by an equals sign, followed by a number. For example wght=500, or slnt=-7.5.

Parameters

str ubyte[]

a string to parse

variation harfbuzz.variation.Variation

the #hb_variation_t to initialize with the parsed values

Return Value

Type: harfbuzz.types.Bool

true if str is successfully parsed, false otherwise