Package com.sun.pdfview.font
Class Type3Font
java.lang.Object
com.sun.pdfview.font.PDFFont
com.sun.pdfview.font.Type3Font
A Type 3 Font, in which each glyph consists of a sequence of PDF
commands.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) AffineTransformaffine transform for the font characters(package private) Rectangle2Dbounding box for the font characters(package private) Mapthe character processes, mapped by name(package private) intthe start code(package private) intthe end coderesources for the character definitions(package private) float[]the widths -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintGet the first character codeprotected PDFGlyphGet the glyph for a given character code and name The preferred method of getting the glyph should be by name.intGet the last character codeMethods 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
-
rsrc
resources for the character definitions -
charProcs
Map charProcsthe character processes, mapped by name -
bbox
Rectangle2D bboxbounding box for the font characters -
at
affine transform for the font characters -
widths
float[] widthsthe widths -
firstChar
int firstCharthe start code -
lastChar
int lastCharthe end code
-
-
Constructor Details
-
Type3Font
public Type3Font(String baseFont, PDFObject fontObj, HashMap<String, PDFObject> resources, PDFFontDescriptor descriptor) throws IOExceptionGenerate a Type 3 font.- Parameters:
baseFont- the postscript name of this fontfontObj- a dictionary containing references to the character definitions and font informationresources- a set of resources used by the character definitionsdescriptor- the descriptor for this font- Throws:
IOException
-
-
Method Details
-
getFirstChar
public int getFirstChar()Get the first character code -
getLastChar
public int getLastChar()Get the last character code -
getGlyph
Get the glyph for a given character code and name The preferred method of getting the glyph should be by name. If the name is null or not valid, then the character code should be used. If the both the code and the name are invalid, the undefined glyph should be returned. Note this method must *always* return a glyph.
-