Package org.apache.pdfbox.pdmodel.font
Class PDFontFactory
java.lang.Object
org.apache.pdfbox.pdmodel.font.PDFontFactory
This will create the correct type of font based on information in the dictionary.
- Version:
- $Revision: 1.6 $
- Author:
- Ben Litchfield
-
Method Summary
Modifier and TypeMethodDescriptionstatic PDFont
Create a default fontstatic PDFont
createFont
(COSDictionary dic) This will create the correct font based on information in the dictionary.static PDFont
createFont
(COSDictionary dic, Map fontCache) Deprecated.
-
Method Details
-
createFont
Deprecated.due to some side effects font caching is no longer supported, usecreateFont(COSDictionary)
insteadThis will create the correct font based on information in the dictionary.- Parameters:
dic
- The populated dictionary.fontCache
- A Map to cache already created fonts- Returns:
- The corrent implementation for the font.
- Throws:
IOException
- If the dictionary is not valid.
-
createFont
This will create the correct font based on information in the dictionary.- Parameters:
dic
- The populated dictionary.- Returns:
- The corrent implementation for the font.
- Throws:
IOException
- If the dictionary is not valid.
-
createDefaultFont
Create a default font- Returns:
- a default font
- Throws:
IOException
- if something goes wrong
-
createFont(COSDictionary)
instead