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.

The font will be registered in <strong>PDFlib</strong>, and its name can be supplied to load_font( ) along<br />

with an encoding which contains the names of the glyphs in the Type 3 font. Please note<br />

the following when working with Type 3 fonts:<br />

> Similar to patterns and templates, images cannot be opened within a glyph description.<br />

However, they can be opened before starting a glyph description, and placed<br />

within the glyph description. Alternatively, inline images may be used for small bitmaps<br />

to overcome this restriction.<br />

> Due to restrictions in PDF consumers all characters used in text output must actually<br />

be defined in the font: if character code x is to be displayed with any text output<br />

function, and the encoding contains glyphname at position x, then glyphname must<br />

have been defined via begin_glyph( ).<br />

> Some PDF consumers require a glyph named .notdef if codes will be used for which<br />

the corresponding glyph names are not defined in the font. Acrobat 8 may even<br />

crash if a .notdef glyph is not present. The .notdef glyph must be present, but it may<br />

simply contain an empty glyph description.<br />

> When normal bitmap data is used to define characters, unused pixels in the bitmap<br />

will print as white, regardless of the background. In order to avoid this and have the<br />

original background color shine through, use the mask parameter for constructing<br />

the bitmap image.<br />

> The interpolate option for images may be useful for enhancing the screen and print<br />

appearance of Type 3 bitmap fonts.<br />

> Type 3 fonts do not contain any typographic properties such as ascender, descender,<br />

etc. However, these can be set by using the corresponding options in load_font( ).<br />

120 Chapter 5: Font Handling (Edition for <strong>COM</strong>, .<strong>NET</strong>, and REALbasic)

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

Saved successfully!

Ooh no, something went wrong!