textGlyphPositions

Calculates the glyph x positions of the specified text. Measured values are returned in local coordinate space.

  1. NVGGlyphPosition[] textGlyphPositions(NVGContext ctx, float x, float y, const(T)[] str, NVGGlyphPosition[] positions)
  2. int textGlyphPositions(NVGContext ctx, float x, float y, const(T)[] str, DG dg)
    int
    textGlyphPositions
    (
    T
    DG
    )
    (,
    float x
    ,
    float y
    ,
    const(T)[] str
    ,
    scope DG dg
    )
    if (
    isAnyCharType!T &&
    isGoodPositionDelegate!DG
    )

See Also

Meta