|
THotPDF.EnableFontSubsetting
|
属性 FontEmbedding PDF 过滤器支持 |
|
Controls whether embedded fonts are reduced to the glyphs used by the current document.
Delphi 语法: property EnableFontSubsetting: Boolean;
C++ 语法: __property bool EnableFontSubsetting;
说明 当最终 PDF 只应嵌入文档实际使用的 glyph 时,请在 BeginDoc 前将 EnableFontSubsetting 设为 true
该属性默认关闭,以便为生成后可能还会编辑的文档保留完整字体嵌入。对于最终 PDF 输出,启用子集化可大幅减小文件体积,尤其是大型 CJK CID-keyed OpenType-CFF 字体(Adobe Fan/Gothic/Heiti/Ming/Myungjo/Song Std、Kozuka Pr6N、Source Han Sans 等);每个文档通常只使用 18000+ CIDs 中的一小部分
写入 subset font 时,HotPDF 会在 /BaseFont 上使用 PDF 要求的六字母 subset prefix,并保持嵌入字体程序与解析出的 PostScript name 内部一致。
PDF/A 下,嵌入的 TrueType 子集会进一步压缩:保留的字形会重新编号为紧凑区间,声明的字形数缩减为文档实际用到的字形,并丢弃 CIDFontType2 从不查询的按 GID 索引的表(cmap、GPOS、GSUB、hdmx、kern),同时用显式的
另请参阅: CompactFontSubsetting, FontEmbedding, CFF and OpenType Font Subsetting Functions, PDF 过滤器支持 |