| java.lang.Object com.sun.pdfview.font.PDFFont com.sun.pdfview.font.OutlineFont com.sun.pdfview.font.Type1CFont
Type1CFont | public class Type1CFont extends OutlineFont (Code) | | A representation, with parser, of an Adobe Type 1C font.
author: Mike Wessler |
charsetbase | int charsetbase(Code) | | |
charstringbase | int charstringbase(Code) | | |
charstringtype | int charstringtype(Code) | | |
encodingbase | int encodingbase(Code) | | |
glyphnames | int glyphnames(Code) | | |
gsubrsoffset | int gsubrsoffset(Code) | | |
lsubrsoffset | int lsubrsoffset(Code) | | |
privatebase | int privatebase(Code) | | |
privatesize | int privatesize(Code) | | |
Type1CFont | public Type1CFont(String baseFont, PDFObject src, PDFFontDescriptor descriptor) throws IOException(Code) | | create a new Type1CFont based on a font data stream and a descriptor
Parameters: baseFont - the postscript name of this font Parameters: src - a stream containing the font Parameters: descriptor - the descriptor for this font |
calcoffset | public int calcoffset(int base)(Code) | | calculate an offset code for a dictionary
Parameters: base - the index of the start of the dictionary |
getIndexEntry | Range getIndexEntry(int index, int id)(Code) | | Get the range of a particular index in a dictionary.
Parameters: index - the start of the dictionary. Parameters: id - the index of the entry in the dictionary a range describing the offsets of the start and end ofthe entry from the start of the file, not the dictionary |
getIndexSize | public int getIndexSize(int loc)(Code) | | get the size of the dictionary located within the stream at
some offset.
Parameters: loc - the index of the start of the dictionary the size of the dictionary, in bytes. |
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 |
getSID | public String getSID(int id)(Code) | | get the name associated with an ID.
Parameters: id - the index of the name the name from the FontSupport.stdNames table augmentedby the local name table |
parseGlyph | void parseGlyph(Range r, GeneralPath gp, FlPoint pt)(Code) | | parse a glyph defined in a particular range
Parameters: r - the range of the glyph definition Parameters: gp - a GeneralPath in which to store the glyph outline Parameters: pt - a FlPoint representing the end of the current path |
readFNum | public void readFNum()(Code) | | read the next funky floating point number from the input stream.
value gets put into the fnum field.
|
|
|