Package com.sun.pdfview.font
Class Type0Font
- java.lang.Object
-
- com.sun.pdfview.font.PDFFont
-
- com.sun.pdfview.font.Type0Font
-
public class Type0Font extends PDFFont
Type 0 fonts are composite fonts with a CMAP to map between source character codes and destination fonts/codes
-
-
Constructor Summary
Constructors Constructor Description Type0Font(java.lang.String baseFont, PDFObject fontObj, PDFFontDescriptor descriptor)
Creates a new instance of Type0Font
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PDFFont
getDescendantFont(int fontID)
Get a descendant font of this font by fontIdprotected PDFGlyph
getGlyph(char src, java.lang.String name)
Get a character from the first font in the descendant fonts array-
Methods inherited from class com.sun.pdfview.font.PDFFont
equals, getBaseFont, getCachedGlyph, getDescriptor, getEncoding, getFont, getGlyphs, getSubtype, getUnicodeMap, hashCode, setBaseFont, setDescriptor, setEncoding, setSubtype, setUnicodeMap, toString
-
-
-
-
Field Detail
-
fonts
PDFFont[] fonts
The decendant fonts, indexed by font number from the CMAP
-
-
Constructor Detail
-
Type0Font
public Type0Font(java.lang.String baseFont, PDFObject fontObj, PDFFontDescriptor descriptor) throws java.io.IOException
Creates a new instance of Type0Font- Throws:
java.io.IOException
-
-