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.

A.76 <strong>DLI</strong> <strong>Reference</strong> <strong>Guide</strong><br />

dlpdffontcreatewithmetrics (DLPDFDOC<br />

*Doc, char *fontName, PDEFontAttrs *fontAttrs, unsigned<br />

short *Widths, char *Encoding [])<br />

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

Return Value: DLPDFFONT*<br />

Description<br />

Parameters<br />

Return Value<br />

This function call will cause the Adobe PDF<br />

Library to search the system default font locations<br />

<strong>and</strong> the locations supplied at initialization<br />

time for a font of the specified name <strong>and</strong><br />

attributes. If the font cannot be found, one will<br />

be created if a width table <strong>and</strong> valid font<br />

attributes have been supplied. If no encoding is<br />

specified in the font attributes, the font will be<br />

created with the document's default font encoding.<br />

• DLPDFDOC *Doc: The document for which<br />

to embed all fonts<br />

• char *fontName: Font name to search for<br />

• PDEFontAttrs *fontAttrs: A<br />

PDEFontAttrs structure which has been<br />

zero-filled <strong>and</strong> set with parameters which the<br />

caller wants to see reflected in the returned<br />

font. See the Adobe Acrobat Core API<br />

<strong>Reference</strong> for details on this structure.<br />

• unsigned short Widths: If non-NULL,<br />

an array of 256 values; see Technical Note 1<br />

below.<br />

• char *Encoding: If non-NULL, an array of<br />

256 values; see Technical Note 2 below.<br />

The DLPDFFONT which has been created<br />

Exceptions<br />

Header<br />

dli.h

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

Saved successfully!

Ooh no, something went wrong!