|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.freehep.graphicsio.font.FontTable
org.freehep.graphicsio.ps.PSFontTable
public class PSFontTable
FontTable for PS files. The fonts name is used as a reference for the font. When the font is first used, it is embedded to the file if it is not a standard font. If it is unknown it is not substituted.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.freehep.graphicsio.font.FontTable |
---|
FontTable.Entry |
Constructor Summary | |
---|---|
PSFontTable(java.io.OutputStream out,
java.awt.font.FontRenderContext context)
|
Method Summary | |
---|---|
protected java.lang.String |
createFontReference(java.awt.Font font)
Uses the font name as a reference. |
protected void |
firstRequest(FontTable.Entry e,
boolean embed,
java.lang.String embedAs)
Called whenever a specific font is used for the first time. |
CharTable |
getEncodingTable()
Returns a default CharTable to be used for normal text (not Symbol or Dingbats). |
static void |
normalize(java.util.Map attributes)
Replaces TextAttribute.FAMILY by values of replaceFonts. |
protected java.awt.Font |
substituteFont(java.awt.Font font)
removes any transformation and superscript, changes the names to PS font name |
Methods inherited from class org.freehep.graphicsio.font.FontTable |
---|
fontReference, getEntries |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PSFontTable(java.io.OutputStream out, java.awt.font.FontRenderContext context)
Method Detail |
---|
public CharTable getEncodingTable()
FontTable
getEncodingTable
in class FontTable
protected void firstRequest(FontTable.Entry e, boolean embed, java.lang.String embedAs) throws java.io.IOException
FontTable
firstRequest
in class FontTable
java.io.IOException
protected java.awt.Font substituteFont(java.awt.Font font)
substituteFont
in class FontTable
font
-
protected java.lang.String createFontReference(java.awt.Font font)
normalize(java.util.Map)
createFontReference
in class FontTable
public static void normalize(java.util.Map attributes)
java.awt.Font[family=SansSerif,name=SansSerif,style=plain,size=30]
java.awt.Font[family=SansSerif,name=Helvetica,style=plain,size=30]
FontTable.normalize(java.util.Map)
first.
attributes
- with font name to change
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |