THotPDF.NotEmbeddedFonts Property
HotPDF Delphi PDF Component Developer Guide loslab Logo

 

THotPDF.NotEmbeddedFonts

THotPDF

 

Top  Previous  Next

NotEmbeddedFonts lists the fonts which will not be Embedded.

 

Delphi syntax:

property NotEmbeddedFonts: TStringList;

 

C++ syntax:

__property Classes::TStringList* NotEmbeddedFonts;

 

Description

Use NotEmbeddedFonts to store fonts which will not be Embedded.

 

Code Example

HPDF.FontEmbedding := true;                     // Enable font embedding by default
HPDF.NotEmbeddedFonts.Add( 'Arial' );           // Exclude Arial from embedding
HPDF.NotEmbeddedFonts.Add( 'Times New Roman' ); // Exclude Times New Roman from embedding

HPDF.CurrentPage.SetFont( 'Arial', [], 12 );
HPDF.CurrentPage.TextOut( 100, 100, 'Arial will not be embedded' );

HPDF.CurrentPage.SetFont( 'Courier New', [], 12 );
HPDF.CurrentPage.TextOut( 100, 80, 'Courier New will be embedded' );

 

See also: FontEmbedding StandardFontEmulation

Copyright©2007-2025 losLab.com