variationFromString

fnharfbuzz.types.Bool variationFromString(ubyte[] str, out harfbuzz.variation.Variation variation)

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

stra string to parse
variationthe #hb_variation_t to initialize with the parsed values

Returns

true if str is successfully parsed, false otherwise