Font.getTextBounds

Measures the specified text string. Parameter bounds should be a pointer to float[4], if the bounding box of the text should be returned. The bounds value are [xmin,ymin, xmax,ymax] Measured values are returned in local coordinate space.

  1. float[4] getTextBounds(wstring text, float x, int fontSize)
    class Font
    float[4]
    getTextBounds
    (
    in wstring text
    ,
    in float x
    ,
    in int fontSize
    )
  2. float[4] getTextBounds(string text, float x, int fontSize)
  3. float[4] getTextBounds(immutable(char)* data, float x, int fontSize)

Meta