www.gnostice.com 

 

DefaultFont property (TgtCustomDocumentEngine)

TgtCustomDocumentEngine

Top 

 

property DefaultFont: TFont;

 

Description

 

Use this property to specify the font that needs to be used for calculating the precise position of the text to be rendered in case of engines that do not support setting of fonts.

 

Example:

 

Delphi:

gtTextEngine1.DefaultFont.Name := 'Courier New';

gtTextEngine1.DefaultFont.Size := 15;

 

C++Builder:

gtTextEngine1->DefaultFont->Name = "Courier New";

gtTextEngine1->DefaultFont->Size = 15;