Package com.ribs.pdf
Class PDFFontFactory
- java.lang.Object
- 
- com.ribs.pdf.PDFFontFactory
 
- 
- All Implemented Interfaces:
- FontFactory
 
 public class PDFFontFactory extends java.lang.Object implements FontFactory PDFFontFactory.java
- 
- 
Field Summary- 
Fields inherited from interface com.ribs.pdf.FontFactoryAdobeCIDType0Font, AdobeCIDType2Font, AdobeMultipleMasterFont, AdobeType0Font, AdobeType1Font, AdobeType3Font, TrueTypeFont, UnknownFontType
 
- 
 - 
Constructor SummaryConstructors Constructor Description PDFFontFactory()
 - 
Method SummaryAll 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- 
getFontpublic 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 interface- FontFactory
 
 - 
getFontpublic 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 interface- FontFactory
 
 - 
getSubstituteFontpublic java.awt.Font getSubstituteFont(java.util.Map fontDict) Try some font substitutions.- Specified by:
- getSubstituteFontin interface- FontFactory
 
 - 
getDefaultFontpublic java.awt.Font getDefaultFont() When all else fails, use this font. Damn well better return something.- Specified by:
- getDefaultFontin interface- FontFactory
 
 - 
getGlyphMapperpublic GlyphMapper getGlyphMapper(java.util.Map fontDict, PDFFile srcfile) Create a glyphmapper for the font specified by the pdf font dictionary- Specified by:
- getGlyphMapperin interface- FontFactory
 
 - 
getGlyphWidthspublic 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 interface- FontFactory
 
 
- 
 
-