org.pdfbox.pdmodel.font
Class PDFontFactory
java.lang.Object
org.pdfbox.pdmodel.font.PDFontFactory
public class PDFontFactory
extends java.lang.Object
This will create the correct type of font based on information in the dictionary.
createFont
public static PDFont createFont(COSDictionary dic)
throws IOException
This will create the correct font based on information in the dictionary.
dic
- The populated dictionary.
- The corrent implementation for the font.
createFont
public static PDFont createFont(COSDictionary dic,
Map fontCache)
throws IOException
Create a font from the dictionary. Use the fontCache to get the existing
object instead of creating it.
dic
- The font dictionary.fontCache
- The font cache.
- The PDModel object for the cos dictionary.