10.07.2015 Views

Download - Multivac!

Download - Multivac!

Download - Multivac!

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Note The Leopard builds of PDFlib (for Mac OS X 10.5 and above) support all three kinds of host fontnames. Non-Leopard builds accept only QuickDraw font names.Potential problems with host font access on the Mac. In our testing we found thatnewly installed fonts are sometimes not accessible for UI-less applications such asPDFlib until the user logs out from the console, and logs in again.On Mac OS X 10.5 (Leopard) host fonts are not available to programs running in a terminalsession from a remote computer. This is not a restriction of PDFlib, but also affectsother programs such as Font Tools. This problem has been fixed in Mac OS X 10.5.6.5.3.3 Font EmbeddingPDFlib is capable of embedding font outlines into the generated PDF output. Font embeddingis controlled via the embedding option of PDF_load_font( ) (although in somecases PDFlib will enforce font embedding):font = p.load_font("WarnockPro", "winansi", "embedding");Alternatively, a font descriptor containing only the character metrics and some generalinformation about the font (without the actual glyph outlines) can be embedded. If afont is not embedded in a PDF document, Acrobat will take it from the target system ifavailable, or construct a substitute font according to the font descriptor. Table 5.1 listsdifferent situations with respect to font usage, each of which poses different requirementson the font and metrics files required by PDFlib. In addition to the requirementslisted in Table 5.1 the corresponding CMap files (plus in some cases the Unicode mappingCMap for the respective character collection, e.g. Adobe-Japan1-UCS2) must be availablein order to use a (standard or custom) CJK font with any of the standard CMaps.When a font with font-specific encoding (a symbol font) or one containing glyphsoutside Adobe’s Standard Latin character set is used, but not embedded in the PDF output,the resulting PDF will be unusable unless the font is already natively installed onthe target system (since Acrobat can only simulate Latin text fonts). Such PDF files areinherently nonportable, although they may be of use in controlled environments, suchas intra-corporate document exchange.Table 5.1 Different font usage situations and required filesfont usagefont metrics file must beavailable?font outline file must beavailable?one of the 14 core fonts no only if embedding is desiredTrueType, OpenType, or PostScript Type 1 host font installedon the Mac or Windows systemnononon-core PostScript fonts yes only if embedding is desiredTrueType fonts n/a yesOpenType fonts, incl. CJK TrueType and OpenType fonts n/a yesstandard CJK fonts 1nono1. See Section 5.6, »Chinese, Japanese, and Korean Fonts«, page 116, for more information on CJK fonts.106 Chapter 5: Font Handling

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

Saved successfully!

Ooh no, something went wrong!