Reference nvgTextBox
Declared in Codebot.Render.NanoVG.pas on lines 774, 775
Draws multi-line text string at specified location wrapped at the specified width. If EndStr is specified only the sub-string up to the end is drawn. White space is stripped at the beginning of the rows, the text is split at word boundaries or when new-line characters are encountered. Words longer than the max width are slit at nearest character (i.e. no hyphenation)
procedure nvgTextBox(Ctx: PNVGcontext; X, Y, BreakRowWidth: Single; Str, EndStr: PAnsiChar); overload;
procedure nvgTextBox(Ctx: PNVGcontext; X, Y, BreakRowWidth: Single; const S: string); overload;