Function

HarfBuzz-0.0HarfBuzzvariation_from_stringSince 1.4.2

  • Parses a string into a HarfBuzz.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: string | Uint8Array<ArrayBufferLike>

      a string to parse

    Returns [number, variation_t]

    true if str is successfully parsed, false otherwise

    1.4.2