THotPDF.NotEmbeddedFonts Property

 

THotPDF.NotEmbeddedFonts

THotPDF

 

先頭  前へ  次へ

NotEmbeddedFonts は、FontEmbedding が enabled の場合でも embed してはならない fonts を列挙します

 

Delphi syntax:

property NotEmbeddedFonts: TStringList;

 

C++ syntax:

__property Classes::TStringList* NotEmbeddedFonts;

 

説明

他の fonts では embedding を enabled のままにし、特定の fonts だけを external のままにするには NotEmbeddedFonts を使用します

 

この list は、document が信頼性のために大半の fonts を embed すべきだが、known font だけは licensing または workflow 上の理由で external に保つ必要がある場合に有用です

 

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

 

関連項目: FontEmbedding StandardFontEmulation