ChartDirector Ver 3.0 (C++ Edition)

DrawArea.text3


Usage

TTFText* text(const char *str, const char *font, double fontSize);

Description

Create 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 file for the font used to draw the text. See Font Specification for details on various font attributes.
fontSize(Mandatory)The size of the font in points.

Return Value

The TTFText object created.