|
||||||||||
| 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
public class TTFFont
A true-type font
| Constructor Summary | |
|---|---|
TTFFont(java.lang.String baseFont,
PDFObject fontObj,
PDFFontDescriptor descriptor)
|
|
TTFFont(java.lang.String baseFont,
PDFObject fontObj,
PDFFontDescriptor descriptor,
java.io.File fontFile)
create a new TrueTypeFont object based on a description of the font from the PDF file. |
|
| Method Summary | |
|---|---|
java.util.Collection<java.lang.String> |
getNames()
|
protected java.awt.geom.GeneralPath |
getOutline(char src,
float width)
Get the outline of a character given the character code |
protected java.awt.geom.GeneralPath |
getOutline(int glyphId,
float width)
Get the outline of a character given the glyph id |
protected java.awt.geom.GeneralPath |
getOutline(java.lang.String name,
float width)
Get the outline of a character given the character name |
protected java.awt.geom.GeneralPath |
getOutlineFromCMaps(char val,
float width)
lookup the outline using the CMAPs, as specified in 32000-1:2008, 9.6.6.4, when an Encoding is specified. |
protected java.awt.geom.GeneralPath |
renderCompoundGlyph(GlyfTable glyf,
GlyfCompound g)
Render a compound glyf |
protected java.awt.geom.GeneralPath |
renderSimpleGlyph(GlyfSimple g)
Render a simple glyf |
| 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 TTFFont(java.lang.String baseFont,
PDFObject fontObj,
PDFFontDescriptor descriptor)
throws java.io.IOException
java.io.IOException
public TTFFont(java.lang.String baseFont,
PDFObject fontObj,
PDFFontDescriptor descriptor,
java.io.File fontFile)
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
public java.util.Collection<java.lang.String> getNames()
protected java.awt.geom.GeneralPath getOutline(char src,
float width)
getOutline in class OutlineFontsrc - the character code of the desired glyph
protected java.awt.geom.GeneralPath getOutlineFromCMaps(char val,
float width)
val - width -
protected java.awt.geom.GeneralPath getOutline(java.lang.String name,
float width)
getOutline in class OutlineFontname - the name of the desired glyph
protected java.awt.geom.GeneralPath getOutline(int glyphId,
float width)
protected java.awt.geom.GeneralPath renderSimpleGlyph(GlyfSimple g)
protected java.awt.geom.GeneralPath renderCompoundGlyph(GlyfTable glyf,
GlyfCompound g)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||