Enum FontType
Enumeration that dictates how Apoc should treat fonts when producing a PDF document.
Namespace: Telerik.Apoc.Render.Pdf
Assembly: TelerikData.dll
Syntax
public enum FontType
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:
- Only characters in the WinAnsi character encoding are supported (i.e. Latin)
- 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.
Embed
The entire font program is embedded.
Link
Fonts are linked.
Subset
The font program is subsetted and embedded.