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 />

for Type 1 fonts first, then TrueType fonts, <strong>and</strong> finally CID fonts. If no match occurs, the next test in the<br />

sequence below is attempted.<br />

1 The current DLPDFDOC is searched for fonts with the same name <strong>and</strong> type as requested. If one was<br />

already created, it is returned.<br />

2 If a Base 14 font is requested <strong>and</strong> is not to be embedded, it is created <strong>and</strong> returned.<br />

3 If the name is matched in the DLPDFINSTANCE font cache, the font is copied to the current<br />

DLPDFDOC <strong>and</strong> returned. (This is where fonts loaded via dlpdfttload are processed.)<br />

4 The system is searched for a font of explicit name <strong>and</strong> type requested by the user. If found, it is created<br />

<strong>and</strong> returned.<br />

5 The system is searched for a font of explicit name (without regard to type) requested by the user. If<br />

found, it is created <strong>and</strong> returned.<br />

6 If any font of the same family <strong>and</strong> typeface style is found, it is created <strong>and</strong> returned.<br />

If a font using a one-byte encoding is found for this name, its width table in the document’s encoding will<br />

be loaded into the DLPDFFONT->WidthTable. If the document indicates that all fonts are to be<br />

embedded, this font will be embedded <strong>and</strong> subset if possible. The font structure created will carry all of<br />

the metrics of this font, so that if it is not embedded <strong>and</strong> is not present on the imaging platform, a<br />

Multiple Master (or "multi-master") font can be used to provide imaging of the document.<br />

The encoding used in this font will be the encoding specified in dlpdfdocsetencoding, if that call has<br />

been used; otherwise it will default depending on the system in use: WinAnsiEncoding will be used on<br />

Windows systems <strong>and</strong> Adobe st<strong>and</strong>ard encoding will be used on UNIX, OS/390 <strong>and</strong> AS/400 systems.<br />

If dlpdffontcreate is called without a font name, it will raise a genErrBadParm exception ("Bad<br />

Parameters") <strong>and</strong> exit.<br />

dlpdffontcreateembedded<br />

This method behaves like dlpdffontcreate, except that:<br />

• The font will be embedded (if possible) regardless of the overall document settings.<br />

• If the subset flag is TRUE, the embedded font will be subset.<br />

• If the subset flag is FALSE, the embedded font will not be subset.<br />

NOTE: Type0 fonts must be subset if they are embedded.

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

Saved successfully!

Ooh no, something went wrong!