Function

HarfBuzz-0.0HarfBuzzfont_add_glyph_origin_for_directionSince 0.9.2

  • Adds the origin coordinates to an (X,Y) point coordinate, in the specified glyph ID in the specified font.

    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

    • glyph: number

      The glyph ID to query

    • direction: direction_t

      The direction of the text segment

    • x: number

      Input = The original X coordinate Output = The X coordinate plus the X-coordinate of the origin

    • y: number

      Input = The original Y coordinate Output = The Y coordinate plus the Y-coordinate of the origin

    Returns [number, number]

    0.9.2