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.

If you know the character code you can use a byte value reference (see »Byte value<br />

references«, page 115):<br />

&.#x4A;<br />

> If you know the glyph name you can use a glyph name reference (see »Glyph name<br />

references«, page 115):<br />

&.smileface;<br />

Fig. 5.1<br />

<strong>Windows</strong> character map<br />

with the Wingdings font<br />

Table 5.1 lists methods for Unicode-aware language bindings such as Java and .<strong>NET</strong>.<br />

Table 5.1 Addressing the smileface glyph in the Wingdings font with Unicode-aware language bindings (e.g. Java)<br />

encoding additional options input string visible result on the page<br />

\uF04A 1<br />

charref &#xF04A; <br />

unicode<br />

charref &.#x4A; <br />

charref &.smileface; <br />

J 2<br />

(nothing)<br />

escapesequence \x4A (nothing)<br />

<br />

builtin<br />

(same as above with encoding=unicode)<br />

1. String syntax for U+F04A in Java and many other Unicode-aware languages<br />

2. Winansi character for the byte code \x4A<br />

5.4 Loading Fonts 131

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

Saved successfully!

Ooh no, something went wrong!