Class PDFFontFactory
- java.lang.Object
 - 
- com.inductiveautomation.rm.pdf.reader.PDFFontFactory
 
 
- 
- All Implemented Interfaces:
 FontFactory
public class PDFFontFactory extends java.lang.Object implements FontFactory
PDFFontFactory.java 
- 
- 
Field Summary
- 
Fields inherited from interface com.inductiveautomation.rm.pdf.reader.FontFactory
AdobeCIDType0Font, AdobeCIDType2Font, AdobeMultipleMasterFont, AdobeType0Font, AdobeType1Font, AdobeType3Font, TrueTypeFont, UnknownFontType 
 - 
 
- 
Constructor Summary
Constructors Constructor Description PDFFontFactory() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.FontgetDefaultFont()When all else fails, use this font.java.awt.FontgetFont(java.lang.String name, java.lang.String type)Look on the system for a font with the given name.java.awt.FontgetFont(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.GlyphMappergetGlyphMapper(java.util.Map fontDict, PDFFile srcfile)Create a glyphmapper for the font specified by the pdf font dictionaryjava.lang.ObjectgetGlyphWidths(java.util.Map fontDict, PDFFile srcfile)Returns the widths for all glyphs in the fonts.java.awt.FontgetSubstituteFont(java.util.Map fontDict)Try some font substitutions. 
 - 
 
- 
- 
Method Detail
- 
getFont
public 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.- Specified by:
 getFontin interfaceFontFactory
 
- 
getFont
public java.awt.Font getFont(java.lang.String name, java.lang.String type)Look on the system for a font with the given name.- Specified by:
 getFontin interfaceFontFactory
 
- 
getSubstituteFont
public java.awt.Font getSubstituteFont(java.util.Map fontDict)
Try some font substitutions.- Specified by:
 getSubstituteFontin interfaceFontFactory
 
- 
getDefaultFont
public java.awt.Font getDefaultFont()
When all else fails, use this font. Damn well better return something.- Specified by:
 getDefaultFontin interfaceFontFactory
 
- 
getGlyphMapper
public GlyphMapper getGlyphMapper(java.util.Map fontDict, PDFFile srcfile)
Create a glyphmapper for the font specified by the pdf font dictionary- Specified by:
 getGlyphMapperin interfaceFontFactory
 
- 
getGlyphWidths
public java.lang.Object getGlyphWidths(java.util.Map fontDict, PDFFile srcfile)Returns the widths for all glyphs in the fonts. Return value is either a float[] for simple single-byte fonts or an instance of a PDFGlyphWidthTable for multi-byte or CID fonts.- Specified by:
 getGlyphWidthsin interfaceFontFactory
 
 - 
 
 -