THotPDF.NotEmbeddedFonts Property

 

THotPDF.NotEmbeddedFonts

THotPDF

 

顶部  上一页  下一页

NotEmbeddedFonts 列出即使 FontEmbedding 启用也不得嵌入的字体

 

Delphi 语法:

property NotEmbeddedFonts: TStringList;

 

C++ 语法:

__property Classes::TStringList* NotEmbeddedFonts;

 

说明

使用 NotEmbeddedFonts,可在其他字体仍启用嵌入的同时,让指定字体保持外部引用

 

当文档出于可靠性应嵌入大多数字体,但某个已知字体因授权或工作流原因必须保持外部引用时,该列表很有用

 

代码示例

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