THotPDF.EnableFontSubsetting

THotPDF

 

속성  FontEmbedding  PDF Filter Support

Controls whether embedded fonts are reduced to the glyphs used by the current document.

 

Delphi 구문:

property EnableFontSubsetting: Boolean;

 

C++ 구문:

__property bool EnableFontSubsetting;

 

설명

Embedded font data를 줄이려면 BeginDoc 전에 EnableFontSubsetting을 true로 설정하십시오. HotPDF는 glyph ID를 보존하면서 TrueType font와 OpenType-CFF font(name-keyed Latin OTF 및 CID-keyed CJK / Indic / Arabic OTF 모두)를 subset하므로 기존 Type0 / Identity-H text output이 계속 valid합니다

 

이 property는 생성 후 편집될 수 있는 document의 full-font embedding을 보존하기 위해 기본적으로 off입니다. Final PDF output에서는 subsetting을 enable하면 file size를 크게 줄일 수 있습니다. 특히 Adobe Fan/Gothic/Heiti/Ming/Myungjo/Song Std, Kozuka Pr6N, Source Han Sans 등 18000개 이상의 CID 중 작은 일부만 document마다 보통 사용되는 큰 CJK CID-keyed OpenType-CFF font에서 효과가 큽니다

 

Subset font가 작성될 때 HotPDF는 /BaseFont에 PDF-required six-letter subset prefix를 사용하고 embedded font program을 resolved PostScript name과 내부적으로 일관되게 유지합니다

 

PDF/A에서는 embedded TrueType subset이 더 compact해집니다. 유지된 glyph는 dense range로 renumber되고, declared glyph count는 document가 실제 사용하는 glyph로 줄어들며, CIDFontType2가 절대 참조하지 않는 GID-indexed table(cmap, GPOS, GSUB, hdmx, kern)은 제거됩니다. 명시적 /CIDToGIDMap stream이 변경되지 않은 page content를 renumbered program에 mapping합니다. 이 방식은 Latin subset을 보통 몇 KB까지 줄이며, non-PDF/A output은 file이 editable하게 남도록 glyph-ID-preserving subset을 유지합니다

 

참조: FontEmbedding, CFF and OpenType Font Subsetting Functions, PDF Filter Support