Function

HarfBuzz-0.0HarfBuzzfont_get_glyph_advances_for_directionSince 1.8.6

  • Fetches the advances for a sequence of glyph IDs in the specified font, in a text segment of the specified direction.

    Calls the appropriate direction-specific variant (horizontal or vertical) depending on the value of direction.

    Parameters

    • font: font_t

      HarfBuzz.font_t to work upon

    • direction: direction_t

      The direction of the text segment

    • count: number

      The number of glyph IDs in the sequence queried

    • first_glyph: number

      The first glyph ID to query

    • glyph_stride: number

      The stride between successive glyph IDs

    Returns [number, number]

    1.8.6