|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.pdfview.font.PDFFont
com.sun.pdfview.font.OutlineFont
com.sun.pdfview.font.Type1CFont
public class Type1CFont
A representation, with parser, of an Adobe Type 1C font.
Constructor Summary | |
---|---|
Type1CFont(java.lang.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 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. |
Methods inherited from class com.sun.pdfview.font.OutlineFont |
---|
getCharCount, getDefaultWidth, getFirstChar, getGlyph, getLastChar, getWidth |
Methods inherited from class com.sun.pdfview.font.PDFFont |
---|
equals, getBaseFont, getCachedGlyph, getDescriptor, getEncoding, getFont, getGlyphs, getSubtype, getUnicodeMap, hashCode, setBaseFont, setDescriptor, setEncoding, setSubtype, setUnicodeMap, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
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 font
java.io.IOException
Method Detail |
---|
public void readFNum()
public int getIndexSize(int loc)
loc
- the index of the start of the dictionary
public 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 name
protected java.awt.geom.GeneralPath getOutline(java.lang.String name, float width)
getOutline
in class OutlineFont
name
- the name of the desired glyph
protected java.awt.geom.GeneralPath getOutline(char src, float width)
getOutline
in class OutlineFont
src
- the character code of the desired glyph
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |