22.03.2015 Views

DLI Implementation and Reference Guide - Datalogics

DLI Implementation and Reference Guide - Datalogics

DLI Implementation and Reference Guide - Datalogics

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

4.2 <strong>DLI</strong> <strong>Implementation</strong> <strong>and</strong> <strong>Reference</strong> <strong>Guide</strong><br />

PDF Font Overview<br />

Concepts <strong>and</strong> Facilities: <strong>Guide</strong> to the DL Pager Composition System<br />

It is important to start by underst<strong>and</strong>ing the difference between the terms character<br />

<strong>and</strong> glyph. A character is an abstract, named entity, such as "hyphen." A glyph is the<br />

representation of a character contained within a font: the mark in the PDF file which<br />

visually represents the character, what you see on-screen or on paper. This is an<br />

important distinction, since some font types use character identifiers to typeset text;<br />

others use glyph identifiers to typeset text. For this chapter, the terms character <strong>and</strong><br />

glyph will be used interchangeably unless the technical distinction is important, in<br />

which case this will be noted.<br />

Characters <strong>and</strong> glyphs in a PDF font can be addressed using either one-byte encodings<br />

(such as WinAnsiEncoding), multibyte encodings (such as Shift-JIS), or 2-byte<br />

glyph identifier (GID) encodings for some TrueType fonts. Some fonts support more<br />

than one method of accessing characters.<br />

There are two categories of fonts in the PDF file format:<br />

• Simple fonts<br />

• Composite fonts<br />

Simple Fonts<br />

Simple fonts are those fonts which are addressed using one byte per glyph or<br />

character. PostScript Type1 fonts <strong>and</strong> most TrueType fonts fall into this category. With<br />

these fonts, no more than 255 characters are addressable. <strong>DLI</strong> offers the flexibility to<br />

easily encode which characters are accessible by accepting an encoding array. The<br />

widths of these characters can also be controlled by providing an array of character<br />

widths.<br />

PDF TrueType fonts which have a post table can use encoding vectors to access fonts<br />

outside the Adobe st<strong>and</strong>ard one-byte encodings.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!