ChartDirector 7.0 (Perl Edition)

DrawArea.text4


Usage

text4(text, font, fontIndex, fontHeight, fontWidth, angle, vertical)

Description

Creates a TTFText object representing a text block.

The TTFText object contains methods to measure and draw the text. This method is useful if the size of the text is needed before deciding where the draw it.

Arguments

ArgumentDefaultDescription
text(Mandatory)A string representing the text to be drawn. CDML
font(Mandatory)The font name. See Font Specification for details on various font attributes.
fontIndex(Mandatory)The font index in case the font name refers to a font collection. An index of 0 means the first font.
fontHeight(Mandatory)The font height in points.
fontWidth(Mandatory)The font width in points.
angle(Mandatory)The rotation angle of the text.
vertical(Mandatory)This argument is for compatibility with older versions of ChartDirector. Always set it to false (zero).

Return Value

The TTFText object created.