THotPDF.NotEmbeddedFonts Property

 

THotPDF.NotEmbeddedFonts

THotPDF

 

Viršus  Ankstesnis  Kitas

NotEmbeddedFonts pateikia šriftus, kurie neturėtų būti įterpti net tada, kai įjungtas FontEmbedding

 

Delphi syntax:

property NotEmbeddedFonts: TStringList;

 

C++ syntax:

__property Classes::TStringList* NotEmbeddedFonts;

 

Aprašas

Naudokite NotEmbeddedFonts, kad tam tikri šriftai liktų išoriniai, o kitų šriftų įterpimas būtų paliktas įjungtas

 

Šis sąrašas naudingas, kai dokumentas turėtų įterpti daugumą šriftų dėl patikimumo, bet žinomas šriftas turi likti išorinis dėl licencijos arba srauto priežasčių

 

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