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.

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

Introduction<br />

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

<strong>DLI</strong> v3.0 has undergone significant enhancements for support of Unicode <strong>and</strong> of<br />

multibyte character set encodings. With the inclusion of the International<br />

Components for Unicode (ICU), <strong>DLI</strong> is now able to properly set text in hundreds of<br />

multibyte encodings <strong>and</strong> all the common Unicode encodings. <strong>DLI</strong> is now also able to<br />

set text in scripts which flow from right to left (e.g. Arabic), supports the Unicode<br />

BiDirectional algorithm, <strong>and</strong> features character shaping <strong>and</strong> glyph combining.<br />

Unicode text composition is also significantly faster <strong>and</strong> less memory-intensive than<br />

previous <strong>DLI</strong> Unicode implementations.<br />

NOTE: The previous support for Unicode, as introduced in <strong>DLI</strong> v2.2, has been<br />

phased out <strong>and</strong> is no longer available.<br />

There are two components to this support:<br />

• Enhancements to the DLPDFFONT functionality<br />

• A new DLPDFTEXT structure<br />

To use these enhancements, fonts must be explicitly loaded into the DLPDFINSTANCE<br />

for a job; once loaded, they are available to all documents created with the<br />

DLPDFINSTANCE. The fonts are used to set text (in Unicode or multibyte encodings)<br />

into a DLPDFTEXT area. The text in the DLPDFTEXT area is stored in Unicode UCS-2<br />

format (in host-order endianness), <strong>and</strong> may be manipulated or extracted. The<br />

DLPDFTEXT is placed into a DLPDFCONTENT area, to place the text into the PDF<br />

content area. Text is written to the PDF file in UCS-2 big-endian format whenever<br />

possible. All fonts loaded are automatically subset to ensure proper output in<br />

generated PDF documents.<br />

Please see information on the <strong>DLI</strong> sample “WideText” on page 17.21 for a<br />

demonstration of how to use the new <strong>DLI</strong> font <strong>and</strong> text functions to typeset Unicode<br />

<strong>and</strong> multibyte text.

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

Saved successfully!

Ooh no, something went wrong!