org.freehep.graphicsio.pdf
Class PDFFontTable
java.lang.Object
org.freehep.graphicsio.font.FontTable
org.freehep.graphicsio.pdf.PDFFontTable
public class PDFFontTable
- extends FontTable
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().
- Version:
- $Id: freehep-graphicsio-pdf/src/main/java/org/freehep/graphicsio/pdf/PDFFontTable.java 7cb75bc60b0e 2006/11/14 22:29:00 duns $
- Author:
- Simon Fischer
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PDFFontTable
public PDFFontTable(PDFWriter pdf)
addFontDictionary
public int addFontDictionary()
throws IOException
- Adds all fonts to a dictionary named "FontList".
- Throws:
IOException
embedAll
public void embedAll(FontRenderContext context,
boolean embed,
String embedAs)
throws IOException
- Embeds all not yet embedded fonts to the file.
- Throws:
IOException
getEncodingTable
public CharTable getEncodingTable()
- Specified by:
getEncodingTable in class FontTable
firstRequest
public void firstRequest(FontTable.Entry e,
boolean embed,
String embedAs)
- Specified by:
firstRequest in class FontTable
substituteFont
protected Font substituteFont(Font font)
- Specified by:
substituteFont in class FontTable
createFontReference
protected String createFontReference(Font f)
- Creates the reference by numbering them.
- Specified by:
createFontReference in class FontTable
- Returns:
- "F"+currentFontIndex
Copyright © 2014. All rights reserved.