public class PDFFontTable extends FontTable
FontTable.Entry
Constructor and Description |
---|
PDFFontTable(PDFWriter pdf) |
Modifier and Type | Method and Description |
---|---|
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) |
fontReference, getEntries, normalize
public PDFFontTable(PDFWriter pdf)
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
Copyright © 2014. All rights reserved.