THotPDF.NotEmbeddedFonts Property

 

THotPDF.NotEmbeddedFonts

THotPDF

 

Top  Previous  Next

NotEmbeddedFonts elenca i font che non devono essere incorporati anche quando FontEmbedding è abilitato.

 

Sintassi Delphi:

property NotEmbeddedFonts: TStringList;

 

Sintassi C++:

__property Classes::TStringList* NotEmbeddedFonts;

 

Descrizione

Usa NotEmbeddedFonts per tenere specifici font esterni mentre l'incorporamento resta abilitato per gli altri font.

 

Questo elenco è utile quando un documento deve incorporare la maggior parte dei font per affidabilità, ma un font noto deve restare esterno per motivi di licenza o di flusso di lavoro.

 

Esempio di codice

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' );

 

Vedi anche: FontEmbedding, StandardFontEmulation