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.

Fonts 4.11<br />

recommends that encoding vectors not be supplied for TrueType fonts. Please see the<br />

PDF <strong>Reference</strong> Manual for further details.<br />

dlpdffontcreatewithmetricsembedded<br />

This method behaves the same as dlpdffontcreatewithmetrics, but with the<br />

following exception: all fonts created with this method will be embedded (if possible),<br />

regardless of the setting of the document's embed fonts flag; if subset is TRUE the<br />

embedded font will be subset, if it is FALSE, the font will be fully embedded,<br />

regardless of the document's font embedding settings. If the requested font is not<br />

found by <strong>DLI</strong>, or the font is not embeddable due to license restrictions, an exception<br />

will be raised.<br />

By manipulating the font calls within the hellodli.c sample program, you can<br />

compare results of using font references, embedded fonts <strong>and</strong> multi-master fonts.<br />

Predefined Font Encodings<br />

Use of an ASAtomNull for a font encoding will yield a font which uses its "Built-In"<br />

encoding; this is recommended for symbol (e.g. Pi) fonts where a named encoding is<br />

not desired. <strong>DLI</strong> recognizes a number of strings that, when used to create ASAtoms<br />

<strong>and</strong> passed into <strong>DLI</strong> functions requiring a font encoding, serve to denote certain<br />

predefined encodings for a font.<br />

Setting the document encoding via dlpdfdocsetencoding does not affect the<br />

encoding used for symbol fonts, to prevent these from becoming inadvertently<br />

invalidated. Named encodings passed into the font creation calls above, however, will<br />

be reflected in symbol fonts.<br />

The strings, <strong>and</strong> the font types they are valid for, are enumerated below:

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

Saved successfully!

Ooh no, something went wrong!