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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

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

Font Creation Calls<br />

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

There are several procedures available for creating a DLPDFFONT structure:<br />

• dlpdffontcreate<br />

• dlpdffontcreateembedded<br />

• dlpdffontcreatewithmetrics<br />

• dlpdffontcreatewithmetricsembedded<br />

All of these calls create the DLPDFFONT structure described above. They are listed in<br />

increasing order of control given over font characteristics, <strong>and</strong> according to the<br />

amount of information a user is required to have about a given font. Those near the<br />

top of the list above require less initial information from the user than those further<br />

down.<br />

The dlpdffontcreatewithmetrics <strong>and</strong><br />

dlpdffontcreatewithmetricsembedded calls can be used to modify the<br />

character width table <strong>and</strong> the character encoding vector array, as well as all the font<br />

attributes which are reflected in the PDEFontAttrs structure these calls require.<br />

Repetitive Font Creation Calls<br />

A DLPDFDOC maintains a list of defined fonts by the name <strong>and</strong> font attributes<br />

requested. Second <strong>and</strong> subsequent calls to create a font structure of a given name <strong>and</strong><br />

attributes will return the same font structure as the first call. For example, if you ask<br />

for the Type1 font Baskerville 20 times, with the same attributes every time, only a<br />

single PDF font structure for Baskerville will be created, <strong>and</strong> only a single<br />

DLPDFFONT structure will be created for Baskerville. If these requests supply differing<br />

font attributes, more than one copy of Baskerville is created.<br />

NOTE: The dlpdffontcreate family of calls will always allow the creation of<br />

the Adobe st<strong>and</strong>ard type 1 fonts. The names of these 14 fonts (sometimes referred<br />

to as the Base 14 fonts) can be found in the PDF <strong>Reference</strong>.

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

Saved successfully!

Ooh no, something went wrong!