Package com.sun.pdfview.font
Class Type0Font
java.lang.Object
com.sun.pdfview.font.PDFFont
com.sun.pdfview.font.Type0Font
Type 0 fonts are composite fonts with a CMAP to map between
source character codes and destination fonts/codes
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionType0Font
(String baseFont, PDFObject fontObj, PDFFontDescriptor descriptor) Creates a new instance of Type0Font -
Method Summary
Modifier and TypeMethodDescriptiongetDescendantFont
(int fontID) Get a descendant font of this font by fontIdprotected PDFGlyph
Get a character from the first font in the descendant fonts arrayMethods 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 Details
-
fonts
PDFFont[] fontsThe decendant fonts, indexed by font number from the CMAP
-
-
Constructor Details
-
Type0Font
public Type0Font(String baseFont, PDFObject fontObj, PDFFontDescriptor descriptor) throws IOException Creates a new instance of Type0Font- Throws:
IOException
-
-
Method Details
-
getDescendantFont
Get a descendant font of this font by fontId -
getGlyph
Get a character from the first font in the descendant fonts array
-