public class Type1CFont extends OutlineFont
| Constructor and Description |
|---|
Type1CFont(String baseFont,
PDFObject src,
PDFFontDescriptor descriptor)
create a new Type1CFont based on a font data stream and a descriptor
|
| Modifier and Type | Method and Description |
|---|---|
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(char src,
float width)
Get a glyph outline by character code
Note this method must always return an outline
|
protected GeneralPath |
getOutline(String name,
float width)
Get a glyph outline by name
|
String |
getSID(int id)
get the name associated with an ID.
|
int |
getTableLength(int loc)
return the number of entries in an Index table.
|
void |
readFNum()
read the next funky floating point number from the input stream.
|
getCharCount, getDefaultWidth, getFirstChar, getGlyph, getLastChar, getWidthequals, getBaseFont, getCachedGlyph, getDescriptor, getEncoding, getFont, getGlyphs, getSubtype, getUnicodeMap, hashCode, setBaseFont, setDescriptor, setEncoding, setSubtype, setUnicodeMap, toStringpublic Type1CFont(String baseFont, PDFObject src, PDFFontDescriptor descriptor) throws IOException
baseFont - the postscript name of this fontsrc - a stream containing the fontdescriptor - the descriptor for this fontIOExceptionpublic void readFNum()
public int getIndexSize(int loc)
loc - the index of the start of the dictionarypublic int getTableLength(int loc)
loc - public int calcoffset(int base)
base - the index of the start of the dictionarypublic String getSID(int id)
id - the index of the nameprotected GeneralPath getOutline(String name, float width)
getOutline in class OutlineFontname - the name of the desired glyphprotected GeneralPath getOutline(char src, float width)
getOutline in class OutlineFontsrc - the character code of the desired glyphCopyright © 2024. All rights reserved.