|
||||||||||
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.TTFFont
com.sun.pdfview.font.CIDFontType2
public class CIDFontType2
a font object derived from a CID font.
Constructor Summary | |
---|---|
CIDFontType2(java.lang.String baseName,
PDFObject fontObj,
PDFFontDescriptor descriptor)
create a new CIDFontType2 object based on the name of a built-in font and the font descriptor |
Method Summary | |
---|---|
int |
getDefaultWidth()
Get the default width in text space |
int |
getDefaultWidthVertical()
Get the default vertical width in text space |
protected java.awt.geom.GeneralPath |
getOutline(char src,
float width)
Get the outline of a character given the character code. |
float |
getWidth(char code,
java.lang.String name)
Get the width of a given character |
float |
getWidthVertical(char code,
java.lang.String name)
Get the vertical width of a given character |
Methods inherited from class com.sun.pdfview.font.TTFFont |
---|
getOutline, getOutline, getOutlineFromCMaps, renderCompoundGlyph, renderSimpleGlyph |
Methods inherited from class com.sun.pdfview.font.OutlineFont |
---|
getCharCount, getFirstChar, getGlyph, getLastChar |
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 CIDFontType2(java.lang.String baseName, PDFObject fontObj, PDFFontDescriptor descriptor) throws java.io.IOException
baseName
- the name of the font, from the PDF filefontObj
- a dictionary that contains the DW (defaultWidth) and
W (width) parametersdescriptor
- a descriptor for the font
java.io.IOException
Method Detail |
---|
public int getDefaultWidth()
getDefaultWidth
in class OutlineFont
public float getWidth(char code, java.lang.String name)
getWidth
in class OutlineFont
public int getDefaultWidthVertical()
public float getWidthVertical(char code, java.lang.String name)
protected java.awt.geom.GeneralPath getOutline(char src, float width)
getOutline
in class TTFFont
src
- the character code of the desired glyph
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |