ChartDirector 7.0 (Python Edition)

DrawArea.text3


Usage

text3(str, font, fontSize)

Description

Creates a TTFText object representing a text block. This method is a simplified version of the DrawArea.text4 method.

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
str(Mandatory)A string representing the text to be drawn. CDML
font(Mandatory)The font name. See Font Specification for details on various font attributes.
fontSize(Mandatory)The font size in points.

Return Value

The TTFText object created.