Click or drag to resize
FontType Enumeration
Enumeration that dictates how Apoc should treat fonts when producing a PDF document.

Namespace: Kettic.AspNet.Controls.Toolkit.Apoc.Render.Pdf
Assembly: Kettic.AspNet.Controls (in Kettic.AspNet.Controls.dll) Version: 2014.4.1129.0 (2014.04.1129.0)
Syntax
public enum FontType
Members
  Member nameValueDescription
Link0 Fonts are linked.
Embed1 The entire font program is embedded.
Subset2 The font program is subsetted and embedded.
Remarks

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:

  1. Only characters in the WinAnsi character encoding are supported (i.e. Latin)
  2. The PDF document will not render correctly if the linked font is not installed.
///

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.

See Also