Robert Franzese wrote: > Hello, > > I'm wondering if there's a place I can go to so I can find a list of fonts > supported by iText.
There are three different ways to answer this question. These three different ways corresponds with three different tables in chapter 11 of the 2nd edition of "iText in Action": Table 11.1: Font files and their extension Type 1 Font files (.afm, .pfm, .pfb) A Type 1 font is composed of two files: one containing the metrics (.afm or .pfm), and one containing the mathematical descriptions for each character (.pfb). True Type Font files (.ttf) A font based on a specification developed by Apple to compete with Adobe's Type 1 fonts. Open Type Font files (.otf, .ttf, .ttc) Cross-platform font file format based on Unicode. Open Type font files containing Type 1 outlines have an .otf extension. Filenames of Open Type fonts containing True Type data have a .ttf or .ttc extension. The .ttc extension is used for True Type Collections. Answer 1: font files with these extensions are supported in iText. Table 11.2: Subtype values for fonts /Type1 A font that defines glyph shapes using Type 1 font technology. /Type3 A font that defines glyphs with streams of PDF graphics operators. /TrueType A font based on the True Type font format. /Type0 A composite font—a font composed of glyphs from a descendant CIDFont. /CIDFontType0 A CIDFont whose glyph descriptions are based on the Compact Font Format. Answer 2: font files of the above subtypes (see ISO 32000 for the meaning of these subtypes) are supported in iText. Table 11.3 lists the different font classes in iText that are at play, and how they relate to each other. Answer 3: read the book to find out how fonts work in iText. > As a follow-up question, is there a way to be able to use additional fonts? What additional type of fonts are you thinking about? iText even allows you to create your own font (Type 3), I guess I don't understand the question. -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info ------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/