www.gnostice.com 

FontEncoding property (TgtCustomPDFEngine)

TgtCustomPDFEngine

Top 

Specifies the type of font encoding to be used to encode font.

 

property FontEncoding: TgtPDFFontEncoding;

 

Description

 

Default: feWinAnsiEncoding

 

TgtPDFFontEncoding = (feWinAnsiEncoding, feMacRomanEncoding, feMacExpertEncoding, feStandardEncoding, fePDFDocEncoding);

 

Specify the character set the PDF reader should use to decode and render all textual content of the document. Font encoding refers to the specific mapping table which maps character codes to actual character glyphs. If you find that characters are not showing up properly in the PDF document as compared to the document try changing the value for Font encoding.

 

Example:

 

Delphi:

gtPDFEngine1.FontEncoding := fePDFDocEncoding;

 

C++Builder:

gtPDFEngine1->FontEncoding = fePDFDocEncoding;