public class PDFFontFactory extends java.lang.Object implements FontFactory
AdobeCIDType0Font, AdobeCIDType2Font, AdobeMultipleMasterFont, AdobeType0Font, AdobeType1Font, AdobeType3Font, TrueTypeFont, UnknownFontType
Constructor and Description |
---|
PDFFontFactory() |
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)
Create a glyphmapper for the font specified by the pdf font dictionary
|
java.lang.Object |
getGlyphWidths(java.util.Map fontDict,
PDFFile srcfile)
Returns the widths for all glyphs in the fonts.
|
java.awt.Font |
getSubstituteFont(java.util.Map fontDict)
Try some font substitutions.
|
public java.awt.Font getFont(java.util.Map fontDict, PDFFile srcfile)
getFont
in interface FontFactory
public java.awt.Font getFont(java.lang.String name, java.lang.String type)
getFont
in interface FontFactory
public java.awt.Font getSubstituteFont(java.util.Map fontDict)
getSubstituteFont
in interface FontFactory
public java.awt.Font getDefaultFont()
getDefaultFont
in interface FontFactory
public GlyphMapper getGlyphMapper(java.util.Map fontDict, PDFFile srcfile)
getGlyphMapper
in interface FontFactory
public java.lang.Object getGlyphWidths(java.util.Map fontDict, PDFFile srcfile)
getGlyphWidths
in interface FontFactory