The number of characters to draw. If this argument is 0, all the
characters are drawn.

canvas

A pointer to a
PhRect_t
structure that defines the area into which the text is to be drawn.

text_flags

Flags that affect how the text is drawn within the text-extent rectangle:

Pg_TEXT_LEFT — left align the text.

Pg_TEXT_RIGHT — right align the text.

Pg_TEXT_CENTER — horizontally center the text.

Pg_BACK_FILL — backfill the text_extent rect
with the currently set fill color.

canvas_flags

Flags that affect how the text-extent rectangle is aligned within the
canvas:

Pg_TEXT_LEFT

Pg_TEXT_RIGHT

Pg_TEXT_CENTER — horizontally center the
text-extent rectangle within the canvas.

Pg_TEXT_TOP

Pg_TEXT_BOTTOM

Pg_TEXT_MIDDLE — vertically center the
text-extent rectangle within the canvas.

linespacing

The leading (spacing) between lines, in pixels.
A positive linespacing has the obvious effect: increased spacing
between lines, and a taller extent.
A negative linespacing causes the function to compute an extent
for overlapping lines.
Larger negative line spacings make the extent decrease in height. The
minimum height of the extent is the height of the current font.