|
||||||||||
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(OutputStream out,
FontRenderContext context)
|
Method Summary | |
---|---|
protected String |
createFontReference(Font font)
Uses the font name as a reference. |
protected void |
firstRequest(FontTable.Entry e,
boolean embed,
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(Map attributes)
Replaces TextAttribute.FAMILY by values of replaceFonts. |
protected Font |
substituteFont(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(OutputStream out, FontRenderContext context)
Method Detail |
---|
public CharTable getEncodingTable()
FontTable
getEncodingTable
in class FontTable
protected void firstRequest(FontTable.Entry e, boolean embed, String embedAs) throws IOException
FontTable
firstRequest
in class FontTable
IOException
protected Font substituteFont(Font font)
substituteFont
in class FontTable
font
-
protected String createFontReference(Font font)
normalize(java.util.Map)
createFontReference
in class FontTable
public static void normalize(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 |