|
||||||||||
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 String |
createFontReference(Font f)
Creates a unique reference to address this font. |
protected abstract void |
firstRequest(FontTable.Entry e,
boolean embed,
String embedAs)
Called whenever a specific font is used for the first time. |
String |
fontReference(Font font,
boolean embed,
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). |
Collection |
getEntries()
Returns a Collection view of all fonts. |
static void |
normalize(Map attributes)
creates a normalized attribute map, e.g. |
protected abstract Font |
substituteFont(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, String embedAs) throws IOException
IOException
protected abstract String createFontReference(Font f)
protected abstract Font substituteFont(Font font)
public String fontReference(Font font, boolean embed, String embedAs)
public static void normalize(Map attributes)
attributes
- public Collection getEntries()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |