public class Type1CFont extends OutlineFont
Constructor and Description |
---|
Type1CFont(java.lang.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 java.awt.geom.GeneralPath |
getOutline(char src,
float width)
Get a glyph outline by character code
Note this method must always return an outline
|
protected java.awt.geom.GeneralPath |
getOutline(java.lang.String name,
float width)
Get a glyph outline by name
|
java.lang.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, getWidth
equals, getBaseFont, getCachedGlyph, getDescriptor, getEncoding, getFont, getGlyphs, getSubtype, getUnicodeMap, hashCode, setBaseFont, setDescriptor, setEncoding, setSubtype, setUnicodeMap, toString
public Type1CFont(java.lang.String baseFont, PDFObject src, PDFFontDescriptor descriptor) throws java.io.IOException
baseFont
- the postscript name of this fontsrc
- a stream containing the fontdescriptor
- the descriptor for this fontjava.io.IOException
public 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 java.lang.String getSID(int id)
id
- the index of the nameprotected java.awt.geom.GeneralPath getOutline(java.lang.String name, float width)
getOutline
in class OutlineFont
name
- the name of the desired glyphprotected java.awt.geom.GeneralPath getOutline(char src, float width)
getOutline
in class OutlineFont
src
- the character code of the desired glyph