Package com.ribs.pdf
Class PDFFontFactory
java.lang.Object
com.ribs.pdf.PDFFontFactory
- All Implemented Interfaces:
- FontFactory
PDFFontFactory.java
- 
Field SummaryFields inherited from interface com.ribs.pdf.FontFactoryAdobeCIDType0Font, AdobeCIDType2Font, AdobeMultipleMasterFont, AdobeType0Font, AdobeType1Font, AdobeType3Font, TrueTypeFont, UnknownFontType
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionWhen all else fails, use this font.Look on the system for a font with the given name.Given a Font dictionary with keys and values as described in the pdf spec, return a java.awt.Font to use for it.getGlyphMapper(Map fontDict, PDFFile srcfile) Create a glyphmapper for the font specified by the pdf font dictionarygetGlyphWidths(Map fontDict, PDFFile srcfile) Returns the widths for all glyphs in the fonts.getSubstituteFont(Map fontDict) Try some font substitutions.
- 
Constructor Details- 
PDFFontFactorypublic PDFFontFactory()
 
- 
- 
Method Details- 
getFontGiven 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
 
- 
getFontLook on the system for a font with the given name.- Specified by:
- getFontin interface- FontFactory
 
- 
getSubstituteFontTry some font substitutions.- Specified by:
- getSubstituteFontin interface- FontFactory
 
- 
getDefaultFontWhen all else fails, use this font. Damn well better return something.- Specified by:
- getDefaultFontin interface- FontFactory
 
- 
getGlyphMapperCreate a glyphmapper for the font specified by the pdf font dictionary- Specified by:
- getGlyphMapperin interface- FontFactory
 
- 
getGlyphWidthsReturns 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
 
 
-