THotPDF.NotEmbeddedFonts Property

 

THotPDF.NotEmbeddedFonts

THotPDF

 

Vrh  Prejšnja  Naslednja

NotEmbeddedFonts navaja pisave, ki se ne smejo vdelati, tudi kadar je FontEmbedding omogočen

 

Delphi syntax:

property NotEmbeddedFonts: TStringList;

 

C++ syntax:

__property Classes::TStringList* NotEmbeddedFonts;

 

Description

Uporabite NotEmbeddedFonts, da ohranite določene pisave zunanje, medtem ko vdelava ostane omogočena za druge pisave

 

Ta seznam je uporaben, kadar naj dokument zaradi zanesljivosti vgradi večino pisav, vendar mora znana pisava zaradi licenciranja ali poteka dela ostati zunanja

 

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