com.sun.pdfview.font
public class Type1CFont extends OutlineFont
Constructor Summary | |
---|---|
Type1CFont(String baseFont, PDFObject src, PDFFontDescriptor descriptor)
create a new Type1CFont based on a font data stream and a descriptor |
Method Summary | |
---|---|
int | calcoffset(int base)
calculate an offset code for a dictionary |
int | getIndexSize(int loc)
get the size of the dictionary located within the stream at
some offset. |
protected GeneralPath | getOutline(String name, float width)
Get a glyph outline by name
|
protected GeneralPath | getOutline(char src, float width)
Get a glyph outline by character code
Note this method must always return an outline
|
String | getSID(int id)
get the name associated with an ID. |
void | readFNum()
read the next funky floating point number from the input stream.
value gets put into the fnum field. |
Parameters: baseFont the postscript name of this font src a stream containing the font descriptor the descriptor for this font
Parameters: base the index of the start of the dictionary
Parameters: loc the index of the start of the dictionary
Returns: the size of the dictionary, in bytes.
Parameters: name the name of the desired glyph
Returns: the glyph outline, or null if unavailable
Parameters: src the character code of the desired glyph
Returns: the glyph outline
Parameters: id the index of the name
Returns: the name from the FontSupport.stdNames table augmented by the local name table