PDFlib Cookbook

cookbook

Fonts

barcode_fontOutput text in a barcode font.
character_referencesDemonstrate character references.
font_infoQuery various properties of a font such as font name, font style, or encoding.
font_metrics_infoQuery various font-related metrics such as ascender or descender.
font_resourcesConfigure font resources and search for fonts.
glyph_availabilityCheck the availability of glyphs in a font.
glyph_replacementShow the effects of glyph substitution in case of glyphs missing in the font.
opentype_feature_testerDemonstrate all supported typographic OpenType features after checking whether a particular feature is supported in a font.
opentype_features_for_cjkDemonstrate the use of OpenType features for CJK fonts and text.
retain_fontPerformance benefits of keeping a font open across multiple documents.
simulated_fontstylesSimulate italic and bold text
starter_fallbackStarter sample for fallback fonts
starter_opentypeDemonstrate various typographic OpenType features after checking whether a particular feature is supported in a font.