17.05.2014 Views

PDFlib 8 Windows COM/.NET Tutorial

PDFlib 8 Windows COM/.NET Tutorial

PDFlib 8 Windows COM/.NET Tutorial

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 Unicode Characters and Glyphs 121<br />

5.2.1 Glyph IDs 121<br />

5.2.2 Unicode Mappings for Glyphs 121<br />

5.2.3 Unicode Control Characters 122<br />

5.3 The Text Processing Pipeline 124<br />

5.3.1 Normalizing Input Strings to Unicode 124<br />

5.3.2 Converting Unicode Values to Glyph IDs 125<br />

5.3.3 Transforming Glyph IDs 126<br />

5.4 Loading Fonts 127<br />

5.4.1 Selecting an Encoding for Text Fonts 127<br />

5.4.2 Selecting an Encoding for symbolic Fonts 129<br />

5.4.3 Example: Selecting a Glyph from the Wingdings Symbol Font 130<br />

5.4.4 Searching for Fonts 132<br />

5.4.5 Host Fonts on <strong>Windows</strong> and Mac OS X 137<br />

5.4.6 Fallback Fonts 139<br />

5.5 Font Embedding and Subsetting 143<br />

5.5.1 Font Embedding 143<br />

5.5.2 Font Subsetting 144<br />

5.6 Querying Font Information 146<br />

5.6.1 Font-independent Encoding, Unicode, and Glyph Name Queries 146<br />

5.6.2 Font-specific Encoding, Unicode, and Glyph Name Queries 147<br />

5.6.3 Querying Codepage Coverage and Fallback Fonts 148<br />

6 Text Output 151<br />

6.1 Text Output Methods 151<br />

6.2 Font Metrics and Text Variations 153<br />

6.2.1 Font and Glyph Metrics 153<br />

6.2.2 Kerning 154<br />

6.2.3 Text Variations 155<br />

6.3 OpenType Layout Features 158<br />

6.3.1 Supported OpenType Layout Features 158<br />

6.3.2 OpenType Layout Features with Textlines and Textflows 160<br />

6.4 Complex Script Output 164<br />

6.4.1 Complex Scripts 164<br />

6.4.2 Script and Language 166<br />

6.4.3 Complex Script Shaping 168<br />

6.4.4 Bidirectional Formatting 168<br />

6.4.5 Arabic Text Formatting 170<br />

6.5 Chinese, Japanese, and Korean Text Output 172<br />

6.5.1 Standard CJK Fonts 172<br />

6.5.2 Custom CJK Fonts 174<br />

6.5.3 EUDC and SING Fonts for Gaiji Characters 175<br />

6.5.4 OpenType Layout Features for advanced CJK Text Output 176<br />

Contents 5

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

Saved successfully!

Ooh no, something went wrong!