|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.freehep.graphicsio.font.FontTable org.freehep.graphicsio.pdf.PDFFontTable
A table to remember which fonts were used while writing a pdf document. Entries to resource dictionaries and embedding of fonts can be done when the drawing is finished by calling addAll().
Nested Class Summary |
Nested classes inherited from class org.freehep.graphicsio.font.FontTable |
FontTable.Entry |
Constructor Summary | |
PDFFontTable(PDFWriter pdf)
|
Method Summary | |
int |
addFontDictionary()
Adds all fonts to a dictionary named "FontList". |
protected String |
createFontReference(Font f)
Creates the reference by numbering them. |
void |
embedAll(FontRenderContext context,
boolean embed,
String embedAs)
Embeds all not yet embedded fonts to the file. |
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). |
protected Font |
substituteFont(Font font)
|
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 PDFFontTable(PDFWriter pdf)
Method Detail |
public int addFontDictionary() throws IOException
IOException
public void embedAll(FontRenderContext context, boolean embed, String embedAs) throws IOException
IOException
public CharTable getEncodingTable()
FontTable
getEncodingTable
in class FontTable
public void firstRequest(FontTable.Entry e, boolean embed, String embedAs)
FontTable
firstRequest
in class FontTable
protected Font substituteFont(Font font)
substituteFont
in class FontTable
protected String createFontReference(Font f)
createFontReference
in class FontTable
|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |