THotPDF.NotEmbeddedFonts Property

 

THotPDF.NotEmbeddedFonts

THotPDF

 

傳回頂部  上一頁  下一頁

NotEmbeddedFonts 會列出即使 FontEmbedding 啟用也不得嵌入的 fonts

 

Delphi 語法:

property NotEmbeddedFonts: TStringList;

 

C++ 語法:

__property Classes::TStringList* NotEmbeddedFonts;

 

說明

使用 NotEmbeddedFonts 可讓特定 fonts 保持外部,同時其他 fonts 仍維持嵌入啟用狀態

 

當檔案為了可靠性應嵌入大多數 fonts,但某個已知 font 因 licensing 或 workflow reasons 必須保持外部時,此 list 很有用

 

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