|
||||||||||
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.NativeFont
public class NativeFont
a font object derived from a true type font.
Field Summary | |
---|---|
protected static char[] |
controlChars
Control characters to filter out of the underlying font |
protected static short[] |
mapIDs
the ids of our favorite CMaps |
Constructor Summary | |
---|---|
NativeFont(java.lang.String baseFont,
PDFObject fontObj,
PDFFontDescriptor descriptor)
create a new NativeFont object based on a description of the font from the PDF file. |
Method Summary | |
---|---|
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 |
protected void |
setFont(byte[] fontdata)
Set the font |
protected void |
setFont(java.awt.Font f)
Set the font |
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 |
Field Detail |
---|
protected static final char[] controlChars
protected static final short[] mapIDs
Constructor Detail |
---|
public NativeFont(java.lang.String baseFont, PDFObject fontObj, PDFFontDescriptor descriptor) throws java.io.IOException
java.io.IOException
Method Detail |
---|
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
protected void setFont(java.awt.Font f)
f
- the font to useprotected void setFont(byte[] fontdata) throws java.awt.FontFormatException, java.io.IOException
fontdata
- the font data as a byte array
java.awt.FontFormatException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |