Download Now

    Reference nvgTextBoxBounds

    Declared in Codebot.Render.NanoVG.pas on lines 787, 788

    Measures the specified multi-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
    procedure nvgTextBoxBounds(Ctx: PNVGcontext; X, Y, BreakRowWidth: Single; Str, EndStr: PAnsiChar; Bounds: PSingle); overload;
    procedure nvgTextBoxBounds(Ctx: PNVGcontext; X, Y, BreakRowWidth: Single; const S: string; Bounds: PSingle); overload;

    See also