public final class PDFontFactory
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static org.apache.commons.logging.Log |
LOG |
Modifier | Constructor and Description |
---|---|
private |
PDFontFactory() |
Modifier and Type | Method and Description |
---|---|
static PDFont |
createDefaultFont()
Deprecated.
|
(package private) static PDCIDFont |
createDescendantFont(COSDictionary dictionary,
PDType0Font parent)
Creates a new PDCIDFont instance with the appropriate subclass.
|
static PDFont |
createFont(COSDictionary dictionary)
Creates a new PDFont instance with the appropriate subclass.
|
static PDFont |
createFont(COSDictionary dictionary,
ResourceCache resourceCache)
Creates a new PDFont instance with the appropriate subclass.
|
public static PDFont createFont(COSDictionary dictionary) throws java.io.IOException
dictionary
- a font dictionaryjava.io.IOException
- if something goes wrongpublic static PDFont createFont(COSDictionary dictionary, ResourceCache resourceCache) throws java.io.IOException
dictionary
- a font dictionaryresourceCache
- resource cache, only useful for type 3 fonts, can be nulljava.io.IOException
- if something goes wrongstatic PDCIDFont createDescendantFont(COSDictionary dictionary, PDType0Font parent) throws java.io.IOException
dictionary
- descendant font dictionaryjava.io.IOException
- if something goes wrong@Deprecated public static PDFont createDefaultFont() throws java.io.IOException
PDType1Font.HELVETICA
java.io.IOException
- if something goes wrong