static   bool   sgCText::Draw(const sgCFont* fnt, const SG_TEXT_STYLE& stl, sgCMatrix* mtrx, const char*  string, SG_DRAW_LINE_FUNC line_func)

 

Description:

Draws the text without creating a text object. By default the string is drawn on the XOY plane so that the coordinates origin coincides with the bottom left corner of the first text character. To draw the text in the arbitrary position you have to set an affine transformation matrix.

 

Arguments:

fnt - pointer to the font (read more about fonts - sgCFont),

stl - text style structure (read more about text style structure - here)

mtrx - affine transformation matrix transforming the string from the XOY plane into the user-defined position. If the argument is NULL the string is drawn on the XOY plane so that the coordinates origin coincides with the bottom left corner of the first text character..

string - text string itself

line_func - pointer to the function to be called for each line segment of the text style

 

Returned value:

Returns false if the function fails, otherwise true.

 

 

See also:

Create   SG_DRAW_LINE_FUNC