|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.freehep.graphicsio.font.FontTable
public abstract class FontTable
A table to remember which fonts were used while writing a document.
Nested Class Summary | |
---|---|
protected class |
FontTable.Entry
|
Constructor Summary | |
---|---|
FontTable()
|
Method Summary | |
---|---|
protected abstract java.lang.String |
createFontReference(java.awt.Font f)
Creates a unique reference to address this font. |
protected abstract void |
firstRequest(FontTable.Entry e,
boolean embed,
java.lang.String embedAs)
Called whenever a specific font is used for the first time. |
java.lang.String |
fontReference(java.awt.Font font,
boolean embed,
java.lang.String embedAs)
Returns a name for this font that can be used in the document. |
abstract CharTable |
getEncodingTable()
Returns a default CharTable to be used for normal text (not Symbol or Dingbats). |
java.util.Collection |
getEntries()
Returns a Collection view of all fonts. |
static void |
normalize(java.util.Map attributes)
creates a normalized attribute map, e.g. |
protected abstract java.awt.Font |
substituteFont(java.awt.Font font)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FontTable()
Method Detail |
---|
public abstract CharTable getEncodingTable()
protected abstract void firstRequest(FontTable.Entry e, boolean embed, java.lang.String embedAs) throws java.io.IOException
java.io.IOException
protected abstract java.lang.String createFontReference(java.awt.Font f)
protected abstract java.awt.Font substituteFont(java.awt.Font font)
public java.lang.String fontReference(java.awt.Font font, boolean embed, java.lang.String embedAs)
public static void normalize(java.util.Map attributes)
attributes
- public java.util.Collection getEntries()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |