org.freehep.graphicsio.pdf
Class PDFFontTable
java.lang.Object
org.freehep.graphicsio.font.FontTable
org.freehep.graphicsio.pdf.PDFFontTable
public class PDFFontTable
- extends org.freehep.graphicsio.font.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: PDFFontTable.java 9329 2006-11-14 22:29:00Z duns $
- Author:
- Simon Fischer
Nested classes/interfaces inherited from class org.freehep.graphicsio.font.FontTable |
org.freehep.graphicsio.font.FontTable.Entry |
Methods inherited from class org.freehep.graphicsio.font.FontTable |
fontReference, getEntries, normalize |
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 org.freehep.graphics2d.font.CharTable getEncodingTable()
- Specified by:
getEncodingTable
in class org.freehep.graphicsio.font.FontTable
firstRequest
public void firstRequest(org.freehep.graphicsio.font.FontTable.Entry e,
boolean embed,
String embedAs)
- Specified by:
firstRequest
in class org.freehep.graphicsio.font.FontTable
substituteFont
protected Font substituteFont(Font font)
- Specified by:
substituteFont
in class org.freehep.graphicsio.font.FontTable
createFontReference
protected String createFontReference(Font f)
- Creates the reference by numbering them.
- Specified by:
createFontReference
in class org.freehep.graphicsio.font.FontTable
- Returns:
- "F"+currentFontIndex
Copyright © 2000-2006 FreeHEP. All Rights Reserved.