ChartDirector 6.0 (C++ Edition)

DrawArea.text3


Usage

TTFText* text(const char *str, const char *font, double 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. See ChartDirector Mark Up Language on how to embed special tags in the text for sophisticated formatting.
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.