A3DPDFTextData

struct A3DPDFTextData

A3DPDFTextData structure.

Structure to specify a text line: content and formatting options (color, font used and font size). Specific to this function, the text provided is not in utf8, but is a char* with values 0x00 to 0xFF. The encoding of characters is specified as described in PDF norm annex D (“Character Sets and Encodings”). Latin fonts (Times, Helvetica, Courier families) are encoded with WinAnsiEncoding; character set is described in annex D.2. Symbol and ZapfDingbats have a built-in encoding; character set is described in annex D.5 and D.6.

4.1

Variables

A3DUTF8Char *A3DPDFTextData.m_pcTextString

Content of the text string.

Note this is encoded as char* and not utf8. It should be a single line text string (no carriage return supported).

A3DPDFEFontName A3DPDFTextData.m_eFontName

Font name of the text.

A3DInt32 A3DPDFTextData.m_iFontSize

Size of the font.

A3DPDFRgbColorData A3DPDFTextData.m_sColor

Color of the text.