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.

put by default. For encodings which contain only characters from the Adobe Glyph List(AGL) this can be prevented by setting the autocidfont parameter to false.Type 3 font subsetting. Type 3 fonts must be defined and therefore embedded beforethey can be used in a document (because the glyph widths are required). On the otherhand, subsetting is only possible after creating all pages (since the glyphs used in thedocument must be known to determine the proper subset). In order to avoid this conflict,PDFlib supports widths-only Type 3 fonts. If you need subsetting for a Type 3 fontyou must define the font in two passes:> The first pass with the widthsonly option of PDF_begin_font( ) must be done before usingthe font. It defines only the font and glyph metrics (widths); the font matrix inPDF_begin_font( ) as well as wx and the glyph bounding box in PDF_begin_glyph( ))must be supplied and must accurately describe the actual glyph metrics. Only PDF_begin_glyph( ) and PDF_end_glyph( ) are required for each glyph, but not any othercalls for defining the actual glyph shape. If other functions are called between startand end of a glyph description, they will not have any effect on the PDF output, andwill not raise any exception.> The second pass must be done after creating all text in this font, and defines the actualglyph outlines or bitmaps. Font and glyph metrics will be ignored since they arealready known from the first pass. After the last page has been created, PDFlib alsoknows which glyphs have been used in the document, and will only embed the requiredglyph descriptions to construct the font subset.The same set of glyphs must be provided in pass 1 and pass 2. A Type 3 font with subsettingcan only be loaded once with PDF_load_font( ).Cookbook A full code sample can be found in the Cookbook topic fonts/type3_subsetting.108 Chapter 5: Font Handling

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

Saved successfully!

Ooh no, something went wrong!