The drawText:x:y:items: allows multiple strings to be drawn at once. Strings are drawn in the same manner as
drawString:. The background is left unmodified. Each string is specified by a
CgTextItem object.
A CgTextItem object contains character, delta and font components. The
char component specifies the string value,
delta represents the horizontal offset from the previous item and
font represents the font to be used in the drawing operation. The
font component is optional. If it is specified, the font in the graphics context is changed and the string is drawn in the new font. Otherwise, the string is drawn in the current font. The
CgTextItem must be provided with at least the
char and
delta information. These values can be set individually, with
chars:,
delta:, or
font:, or simultaneously, with
chars:delta:font:.