FontType Enumeration |
Namespace: Kettic.AspNet.Controls.Toolkit.Apoc.Render.Pdf
Member name | Value | Description | |
---|---|---|---|
Link | 0 | Fonts are linked. | |
Embed | 1 | The entire font program is embedded. | |
Subset | 2 | The font program is subsetted and embedded. |
Each of the three alernatives has particular advantages and disadvantages, which will be explained here.
The Link member specifies that all fonts should be linked. This option will produce the smallest PDF document because the font program required to render individual glyphs is not embedded in the PDF document. However, this option does possess two distinct disadvantages:
The Embed option will copy the contents of the entire font program into the PDF document. This will guarantee correct rendering of the document on any system, however certain fonts - especially CJK fonts - are extremely large. The MS Gothic TrueType collection, for example, is 8MB. Embedding this font file would produce a ridicuously large PDF.
Finally, the Subset option will only copy the required glyphs required to render a PDF document. This option will ensure that a PDF document is rendered correctly on any system, but does incur a slight processing overhead to subset the font.