public abstract class FontTable extends Object
Modifier and Type | Class and Description |
---|---|
protected class |
FontTable.Entry |
Constructor and Description |
---|
FontTable() |
Modifier and Type | Method and Description |
---|---|
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<FontTable.Entry> |
getEntries()
Returns a Collection view of all fonts.
|
static void |
normalize(Map<AttributedCharacterIterator.Attribute,Object> attributes)
creates a normalized attribute map, e.g.
|
protected abstract Font |
substituteFont(Font font) |
public abstract CharTable getEncodingTable()
protected abstract void firstRequest(FontTable.Entry e, boolean embed, String embedAs) throws IOException
IOException
protected abstract String createFontReference(Font f)
public String fontReference(Font font, boolean embed, String embedAs)
public static void normalize(Map<AttributedCharacterIterator.Attribute,Object> attributes)
attributes
- public Collection<FontTable.Entry> getEntries()
Copyright © 2014. All rights reserved.