| java.lang.Object com.sun.pdfview.font.PDFFont com.sun.pdfview.font.OutlineFont com.sun.pdfview.font.Type1Font
All known Subclasses: com.sun.pdfview.font.BuiltinFont,
Type1Font | public class Type1Font extends OutlineFont (Code) | | A representation, with parser, of an Adobe Type 1 font.
author: Mike Wessler |
Inner Class :class PSParser | |
psLoc | int psLoc(Code) | | the current position in the postscript stack
|
psStack | float psStack(Code) | | the stack of postscript commands (used by callothersubr)
|
sloc | int sloc(Code) | | the current position in the Type1 stack
|
stack | float stack(Code) | | the Type1 stack of command values
|
Type1Font | public Type1Font(String baseName, PDFObject src, PDFFontDescriptor descriptor) throws IOException(Code) | | create a new Type1Font based on a font data stream and an encoding.
Parameters: baseName - the postscript name of this font Parameters: src - the Font object as a stream with a dictionary Parameters: descriptor - the descriptor for this font |
getOutline | protected GeneralPath getOutline(String name, float width)(Code) | | Get a glyph outline by name
Parameters: name - the name of the desired glyph the glyph outline, or null if unavailable |
getOutline | protected GeneralPath getOutline(char src, float width)(Code) | | Get a glyph outline by character code
Note this method must always return an outline
Parameters: src - the character code of the desired glyph the glyph outline |
getWidth | public float getWidth(char code, String name)(Code) | | Get the width of a given character
This method is overridden to work if the width array hasn't been
populated (as for one of the 14 base fonts)
|
parseFont | protected void parseFont(byte[] font, int start, int len)(Code) | | Read a font from it's data, start position and length
|
|
|