Function

HarfBuzz-0.0HarfBuzzot_math_get_glyph_assemblySince 1.3.3

  • Fetches the GlyphAssembly for the specified font, glyph index, and direction. Returned are a list of HarfBuzz.ot_math_glyph_part_t glyph parts that can be used to draw the glyph and an italics-correction value (if one is defined in the font).

    The direction parameter is only used to select between horizontal or vertical directions for the construction. Even though all HarfBuzz.direction_t values are accepted, only the result of #HB_DIRECTION_IS_HORIZONTAL is considered.

    Parameters

    • font: font_t

      HarfBuzz.font_t to work upon

    • glyph: number

      The index of the glyph to stretch

    • direction: direction_t

      direction of the stretching (horizontal or vertical)

    • start_offset: number

      offset of the first glyph part to retrieve

    Returns [number, ot_math_glyph_part_t[], number]

    the total number of parts in the glyph assembly

    1.3.3