z/OS Font Collection
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Representation of characters

z/OS Font Collection
GA32-1048-00

An important concept to understand is how fonts are represented. For the fonts printed by page printers that use AFP licensed programs, characters are represented by data that describes each dot to be printed (raster fonts) or by mathematical formulas (outline fonts).
Raster fonts
A raster font is created by a sequence of dots, called picture elements (pels), that form a character that is called a raster pattern. The number of dots per inch that a printer generates is called the print resolution, or density. A resolution of 240 pels means that a printer prints 240 pels per inch both vertically and horizontally, or 57,600 pels per square inch (240 × 240).
Figure 1 shows two images of different print resolutions. The image with many small dots has more pels per inch and greater print resolution than the image with fewer large dots.
Figure 1. Print resolution examples
This picture shows the same letter displayed twice. One letter has many small dots; the other letter has fewer large dots.

The ability to print at a specific pel density is determined by the type of printer. Because raster fonts can have 240-pel or 300-pel formats, different fonts are available for printers with different resolutions (for example, 240-pel and 300-pel printers).

Outline fonts
Characters in outline fonts are described by mathematical formulas rather than by pels. These formulas are used by rasterizing software to create bitmap characters that are based on two variables: resolution and point size. This means that a single outline font can offer many print resolutions and point sizes. "Hints" are also contained in the outline fonts to make sure that typographic characteristics of the typeface are maintained in a consistent manner throughout all printed characters. Some of these characteristics include horizontal and vertical stroke widths, serifs, and curve radii.

TrueType and OpenType fonts are outline fonts that consist of tables for identifying the formatting information that is used to support Unicode encoding.

Rotation of characters
The ability to print in different directions and with different character rotations is also determined by the type of printer. Print direction shows the direction in which characters are added to a line of text. Character rotation is the clockwise rotation of a character with respect to the character baseline. The character baseline is a reference on which characters are aligned as they are added to the page in the print direction. The character baseline is always parallel to the print direction.
Figure 2 shows a table of how print direction and character rotation can be combined to print in many orientations.
Figure 2. Print direction and character rotation combinations for print orientations
Print direction is in column 1 with 4 rows: Across 0, Down 90, Back 180, and Up 270. Character Rotations in degrees are in columns 2-5: 0 degrees, 90 degrees, 180 degrees, and 270 degrees.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014