public class SVGFontTable extends Object
addGlyphs(String, java.awt.Font).
The final SVG tag for the <defs> section is generated using toString().
Use normalize(java.util.Map) for referencing embedded glyphs
in <text> tags.| Constructor and Description |
|---|
SVGFontTable() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addGlyphs(String string,
Font font)
creates the glyph for the string
|
static void |
normalize(Map<AttributedCharacterIterator.Attribute,Object> attributes)
Replaces TextAttribute.FAMILY by values of replaceFonts.
|
String |
toString()
creates the font entry:
<PRE>
<font>
<glyph ...
|
protected void addGlyphs(String string, Font font)
string - font - public String toString()
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 © 2020. All rights reserved.