public interface FontFactory
Modifier and Type | Field and Description |
---|---|
static int |
AdobeCIDType0Font |
static int |
AdobeCIDType2Font |
static int |
AdobeMultipleMasterFont |
static int |
AdobeType0Font
Constants used to identify embedded font types
|
static int |
AdobeType1Font |
static int |
AdobeType3Font |
static int |
TrueTypeFont |
static int |
UnknownFontType |
Modifier and Type | Method and Description |
---|---|
java.awt.Font |
getDefaultFont()
When all else fails, use this font.
|
java.awt.Font |
getFont(java.util.Map fontDict,
PDFFile srcfile)
Given a Font dictionary with keys and values as described in the pdf spec,
return a java.awt.Font to use for it.
|
java.awt.Font |
getFont(java.lang.String name,
java.lang.String type)
Look on the system for a font with the given name.
|
GlyphMapper |
getGlyphMapper(java.util.Map fontDict,
PDFFile srcfile)
Returns an instance of a GlyphMapper object which knows how to translate
strings as they would appear in the pdf into a suitable encoding for the font.
|
java.lang.Object |
getGlyphWidths(java.util.Map fontDict,
PDFFile srcfile)
Returns the array of widths for all glyphs in the font.
|
java.awt.Font |
getSubstituteFont(java.util.Map fontDict)
Try some font substitutions.
|
static final int AdobeType0Font
static final int AdobeType1Font
static final int AdobeMultipleMasterFont
static final int AdobeType3Font
static final int TrueTypeFont
static final int AdobeCIDType0Font
static final int AdobeCIDType2Font
static final int UnknownFontType
java.awt.Font getFont(java.util.Map fontDict, PDFFile srcfile)
java.awt.Font getFont(java.lang.String name, java.lang.String type)
java.awt.Font getSubstituteFont(java.util.Map fontDict)
java.awt.Font getDefaultFont()
GlyphMapper getGlyphMapper(java.util.Map fontDict, PDFFile srcfile)
java.lang.Object getGlyphWidths(java.util.Map fontDict, PDFFile srcfile)