PDFlib Cookbook

cookbook

Fonts

barcode_font Output text in a barcode font.
character_references Demonstrate character references.
font_configuration Configure font resources and search for fonts.
font_info Query various properties of a font such as font name, font style, or encoding.
font_lister Create a list of all fonts available in the 'searchpath' directories.
font_metrics_info Query various font-related metrics such as ascender or descender.
glyph_availability Check the availability of glyphs in a font.
glyph_replacement Show the effects of glyph substitution in case of glyphs missing in the font.
opentype_feature_tester Demonstrate all supported typographic OpenType features after checking whether a particular feature is supported in a font.
opentype_features_for_cjk Demonstrate the use of OpenType features for CJK fonts and text.
retain_font Performance benefits of keeping a font open across multiple documents.
simulated_fontstyles Simulate italic and bold text
starter_fallback PDFlib 10 Starter sample for fallback fonts
starter_fallback9 Starter sample for fallback fonts (PDFlib 9 version).
starter_opentype Demonstrate various typographic OpenType features after checking whether a particular feature is supported in a font.