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.

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

dlpdffontcreatewithmetricsembedded<br />

(DLPDFDOC *Doc, char *fontName, PDEFontAttrs<br />

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

ASBool Subset)<br />

Return Value: DLPDFFONT*<br />

Concepts <strong>and</strong> Facilities: <strong>Guide</strong> to the DL Pager Composition System<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, an<br />

exception will be raised. If no encoding is specified<br />

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

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

The created font will be embedded; if Subset<br />

is set to TRUE, then the font will be subset as<br />

well.<br />

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

to embed all fonts<br />

• char *fontName: The font name to search<br />

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

• ASBool Subset: If TRUE, then the font is<br />

both embedded <strong>and</strong> subset. If FALSE, the<br />

entire font file is embedded in the PDF<br />

document. For Type0 fonts, this must be<br />

TRUE.<br />

The DLPDFFONT which has been created

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

Saved successfully!

Ooh no, something went wrong!