HELIOS PDF Handshake 2.0 User manual


A 4: About fonts
A 4.1 General remarks
Why talking about fonts at all - and: what does PDF Handshake need fonts for?
With the PDF Handshake software you can use complete PDF documents in the printing business or in an OPI workflow. PDF documents - in contrast to images such as TIFF or Photoshop files - may already contain text elements using included or referenced fonts. So, with PDF Handshake, we have to find a way to read the font information from a given PDF file and to use this information for printing (and for layout generation if you happen to use EtherShare OPI 2.1).
Quick
reference
The following chapter A 4.2 gives an overview of how the fonts in a PDF document are handled by PDF Handshake during printing and during layout generation. The chapter may serve as a quick reference.
Full-scale
reference
Chapter A 4.3 gives some more background information about fonts, explains the problems that could arise, and illustrates the activities that are running on a PDF Handshake Server when handling fonts. This chapter is meant for those who "want to learn more".
Font patterns
Last but not least, appendix A 5 lists all the fonts we deliver with our product.
A 4.2 What you have to know about fonts and PDF Handshake
PDF Handshake can only use, for printing, the fonts that are embedded in a given PDF document, or those that are available on the server or printer. For OPI layout generation, the fonts must be either embedded or accessible on the server.
Embedded/ non-embedded fonts
Whenever a font is embedded in a PDF file, it will be used by PDF Handshake. This is why we recommend to always embed all fonts when creating PDF files - at least if you are working on different systems.
The fonts we deliver together with our software package are meant to ensure high-quality printing for all PDF files, even for those that do only contain font references and thus are dependent on the fonts that are available on the system.
PostScript/ non-PostScript fonts
There are different categories of fonts, namely PostScript fonts and TrueType fonts. Even though PDF Handshake requires PostScript printers (which usually require PostScript fonts), the program can handle TrueType fonts as well.
PostScript fonts are also divided into different categories. The most frequently used PostScript fonts are "Type 1" and "Type 3" fonts.
The handling of fonts during printing
PDF files with PostScript Type 1 or Type 3 fonts do not cause any problems. Printing can only fail if a font is not embedded and is not available on the server or printer either. In that case, the print job will be aborted, or the printer will replace the missing font by Courier.
PDF files with TrueType fonts are handled as follows:
If the TrueType font is embedded, PDF Handshake transforms the TrueType font into a PostScript Type 1 font and prints the PDF file correctly. The output quality can be enhanced if the printer has a built-in TrueType rasterizer (see chapter A 4.3 below).
If the TrueType font is not embedded, PDF Handshake tries to find a corresponding PostScript font - one with the same name - on the system and uses the PostScript font for printing.
For
EtherShare OPI users only
With EtherShare OPI, fonts are not only required for printing, but also for layout generation.
The generation of layouts should never fail for PDF files that contain PostScript Type 1, Type 3, or TrueType fonts. Non-embedded missing fonts will be replaced by Courier for the screen preview part of the EPSF layout. The printable part of the layout only becomes relevant if you want to print the layouts instead of the high-resolution PDF files. In that case, fonts are handled the same way as they are handled when printing high-resolution files, meaning that they might be replaced by Courier (see paragraph The handling of fonts during printing above).
To avoid font replacement during printing, you should always activate the Check Fonts option on your printer queue (compare chapter 6.5 in your EtherShare OPI manual).
A 4.3 More details about the "font business"
Fonts in PDF files
The PDF file format allows the following font types:
The different types of fonts
and
font handling
Before discussing the different types of fonts - at least those that are allowed in PDF documents - we want to define some specific expressions that will be used later:
Bitmap fonts:
In bitmap fonts, the characters are represented by a pattern of pixels. Bended or round character elements have a serrated shape that becomes more and more obvious when scaling a bitmap font. Therefore, to avoid heavy serrations, the character patterns have to be different for every point size. This would consume a lot of memory. So, bitmap fonts are not very well suited for digital printing.
Outline fonts:
In outline fonts, the shape of each character is described geometrically by lines and curves. Outline-format characters are infinitely scalable, and therefore not limited to a particular point size. Nearly all font types we discuss below, are outline fonts. Type 3 fonts are the only exception; they can be either in bitmap or in outline format.
PostScript/Non-PostScript fonts:
PostScript fonts are very successful in the printing business because each character of a font is handled like a graphical object. PostScript interpreters apply complex algorithms to the fonts and thus are able to transform them into a pixel pattern for a specific output device. TrueType fonts are non-PostScript fonts (see explanation below).
ATM (Adobe Type Manager):
If you use PostScript fonts for printing and want to have an exact representation on your monitor, you have to have a software tool (kind of PostScript interpreter or driver) that is able to transform the fonts into pixel patterns for your monitor. This is what the ATM software does.
Type 1 fonts:
Type 1 is the font format for single-byte Roman fonts for use with Adobe Type Manager software and with PostScript printers. Type 1 fonts use a specialized subset of the PostScript language which is optimized for better performance and a very compact representation. The Type 1 operator set includes so-called "hint information" which serve to create more accurate bitmaps for smaller sizes and lower resolutions. In general, Type 1 fonts guarantee the most accurate results on printouts and have therefore been standardized. All PostScript 3 fonts we deliver with our software package, are Type 1 fonts.
Type 3 fonts:
Type 3 fonts can use the full PostScript language to express a font. Thus, they can do some things that Type 1 fonts cannot do, such as specify shading, color, and fill patterns. The drawback is that Type 3 fonts are not optimized for size or performance like Type 1 fonts are, and there is no built-in method for adding "hint information". Also, Type3 fonts cannot be used with Adobe Type Manager because the ATM software is no full PostScript interpreter. Type 3 fonts look slightly bolder than they would if expressed as a Type 1 font. Type 3 fonts can be useful for special-purpose or very complex fonts (such as complex logos). The format also provides a way to represent bitmap characters.
TrueType fonts:
TrueType fonts are rather wide-spread. Nevertheless, they can cause problems in the high-quality printing business because they are non-PostScript fonts. There are two possibilities of sending TrueType fonts to a PostScript printer: You can either transform the fonts into PostScript fonts, or make sure that your printer has a built-in TrueType rasterizer (software tool that is able to handle TrueType fonts - see explanation below). PDF Handshake transforms TrueType fonts in PDF documents into PostScript Type 1 fonts. The transformation only is an approximation, meaning that there will be a slight loss in quality. To allow high-quality printouts of files containing TrueType fonts, PDF Handshake sends both fonts to the printer, the TrueType font (transformed into Type 42 - see explanation below) and the self-generated Type 1 font.
TrueType rasterizer, Type 42 fonts:
A Type 42 font is a TrueType font that is wrapped up in a PostScript language part. The TrueType font itself remains unchanged so that there is no loss in quality. A PostScript printer with a TrueType rasterizer can handle Type 42 fonts. You can check the PPD file you are currently using to find out whether a TrueType rasterizer is available. This is indicated by the following entry:
*TTRasterizer:Type42.
As mentioned above, if a file contains TrueType fonts, PDF Handshake sends both, the self-generated Type 1 font and the Type 42 font to the printer. The Type 42 font is used automatically by printers with a built-in TrueType rasterizer.
Multiple master fonts:
Multiple master font formats are considered extensions to the Type 1 format. Usually, one font file only contains one representation of a specific font as far as weight and width are concerned. For example: Font1-Light, Font1-Regular, Font1-Bold, Font1-CondensedLight, Font1-ExpandedLight, and so on. Multiple master fonts include two or more "master" fonts within a single font file. This allows users to interpolate many intermediate "instances" of the typeface. PDF Handshake does recognize multiple master fonts but cannot use them or transform them into a usable format. The only thing PDF Handshake can do is to try and find a PostScript Type 1 font of the same name on the server, or to replace the font by Courier.
CID fonts:
This format also is an extension of the Type 1 font format. Characters are still expressed using standard Type 1 operators, but the file organization is different; characters are accessed by Character ID (CID) instead of by name lookup. CID fonts are mainly used for fonts with large character sets, such as Chinese, Japanese, and Korean language fonts. They do hardly ever occur in PDF documents with non-Asian fonts and can thus be neglected here. PDF Handshake does not support CID fonts.
Type 0 fonts:
Type 0 is a "composite" font format. A composite font is composed of a high-level font that references multiple descendent fonts. Type 0 fonts, just like CID fonts, are mainly used for Asian language fonts and can be neglected here. PDF Handshake does not support Type 0 fonts.
Font naming conventions
PDF Handshake recognizes fonts in PDF documents by name. The naming conventions for fonts are not standardized for all font types and systems, meaning that even though a font is identical on two systems, the font names can be different. A PDF file, for example, can contain a reference to a font called "Times,Italic", whereas the corresponding font on the server is called "Times-Italic". PDF Handshake provides a mechanism that allows to handle the different naming conventions. There are two searching strategies:
Summary
The tables A-1 and A-2 below summarize how PDF Handshake deals with the different types of fonts. The first table describes the handling of fonts during printing, the second one the handling of fonts during OPI layout generation. The tables are followed by a flowchart (Fig. A-12) which illustrates what exactly happens on the server and printer when a PDF file is being printed. Please note that the Check Fonts option - which is mentioned in the tables and in the flowchart - is available to EtherShare OPI users only.
Table A-1: The handling of font types during printing with OPI
Font type
(Status)
Printing
Type 1
(embedded)
Embedded font is used.
Type 1
(included by reference)
Corresponding Type 1 font from the server or printer is used - if available.
Otherwise, if the font is missing, there are two options:
If Check Fonts is active the job is aborted completely.
If Check Fonts is not active the handling of the job depends on the printer's default settings; the printer might use Courier, abort the job, or hold the job and deliver a warning.
Type 3
(embedded)
Embedded font is used.
Type 3
(included by reference)
Irrelevant (Type 3 fonts are always embedded)
TrueType
(embedded)
Font is transformed into Type 1. Both, the Type 1 and the Type 42 font are sent to the printer. The Type 42 font is finally used if the printer has a built-in TrueType rasterizer.
TrueType
(included by reference)
PostScript font of the same name is used - if available on the server.
Otherwise, ... (see "Type 1 (included by reference)" above).
Multiple
master
(embedded)
PostScript font of the same name is used - if available on the server (very unlikely).
Otherwise, ... (see "Type 1 (included by reference)" above).
Multiple
master
(included by reference)
PostScript font of the same name is used - if available on the server (very unlikely).
Otherwise, ... (see "Type 1 (included by reference)" above).
Type 0
(embedded) /
(included by reference)
No printing

CID
(embedded) /
(included by reference)
No printing

Table A-2: The handling of font types during layout generation
Font type
(Status)
Layout generation -
Screen preview
Layout generation -
Printable preview
(relevant for printing layouts)
Type 1
(embedded)
Embedded font is used.
Embedded font is used.
Type 1
(included by reference)
Corresponding Type 1 font from the server is included - if available.
Otherwise, Courier is used.
When printing layouts, the font is handled as described in table A-1 above.
Type 3
(embedded)
Embedded font is used.
Embedded font is used.
Type 3
(included by reference)
Irrelevant (Type 3 fonts are always embedded)
TrueType
(embedded)
Font is transformed into
Type 1. Type 1 font is used.
When printing layouts, the font is handled as described in table A-1 above.
TrueType
(included by reference)
PostScript font of the same name is used - if available on the server.
Otherwise, Courier is used.
When printing layouts, the font is handled as described in table A-1 above.
Multiple
master
(embedded)
PostScript font of the same name is used - if available on the server (very unlikely).
Otherwise, Courier is used.
When printing layouts, the font is handled as described in table A-1 above.
Multiple
master
(included by reference)
PostScript font of the same name is used - if available on the server (very unlikely).
Otherwise, Courier is used.
When printing layouts, the font is handled as described in table A-1 above.
Type 0
(embedded) /
(included by reference)
No layout generation
CID
(embedded) /
(included by reference)
No layout generation
Abb. A-12: Font handling when printing a PDF file with OPI

About printer defaults
Printer defaults can be different (compare Fig. A-12 above). In most cases, printers use their default font if they receive a print job with missing fonts. The default font is Courier for most of the printers. Usually, the printers deliver a message when they substitute a missing font.
Some devices abort incomplete jobs completely, or halt them and deliver a message so that you can install the missing font.

© 2002 HELIOS Software GmbH