public class PSFontTable extends FontTable
FontTable.Entry
Constructor and Description |
---|
PSFontTable(OutputStream out,
FontRenderContext context) |
Modifier and Type | Method and Description |
---|---|
protected String |
createFontReference(Font font)
Uses the font name as a reference.
|
protected void |
firstRequest(FontTable.Entry e,
boolean embed,
String embedAs) |
CharTable |
getEncodingTable() |
static void |
normalize(Map<AttributedCharacterIterator.Attribute,Object> attributes)
Replaces TextAttribute.FAMILY by values of replaceFonts.
|
protected Font |
substituteFont(Font font)
removes any transformation and superscript, changes the names
to PS font name
|
fontReference, getEntries
public PSFontTable(OutputStream out, FontRenderContext context)
public CharTable getEncodingTable()
getEncodingTable
in class FontTable
protected void firstRequest(FontTable.Entry e, boolean embed, String embedAs) throws IOException
firstRequest
in class FontTable
IOException
protected Font substituteFont(Font font)
substituteFont
in class FontTable
font
- protected String createFontReference(Font font)
normalize(java.util.Map)
createFontReference
in class FontTable
public static void normalize(Map<AttributedCharacterIterator.Attribute,Object> attributes)
java.awt.Font[family=SansSerif,name=SansSerif,style=plain,size=30]
java.awt.Font[family=SansSerif,name=Helvetica,style=plain,size=30]
FontTable.normalize(java.util.Map)
first.attributes
- with font name to changeCopyright © 2014. All rights reserved.