org.apache.batik.svggen.font
public class SVGFont extends Object implements XMLConstants, SVGConstants, ScriptTags, FeatureTags
Field Summary | |
---|---|
static String | ARG_KEY_ASCII |
static String | ARG_KEY_AUTO_RANGE |
static String | ARG_KEY_CHAR_RANGE_HIGH |
static String | ARG_KEY_CHAR_RANGE_LOW |
static String | ARG_KEY_ID |
static String | ARG_KEY_OUTPUT_PATH |
static char | ARG_KEY_START_CHAR |
static String | ARG_KEY_TESTCARD |
Method Summary | |
---|---|
protected static String | encodeEntities(String s) |
protected static String | getContourAsSVGPathData(Glyph glyph, int startIndex, int count) |
protected static String | getGlyphAsSVG(Font font, Glyph glyph, int glyphIndex, int defaultHorizAdvanceX, String attrib, String code) |
protected static String | getGlyphAsSVG(Font font, Glyph glyph, int glyphIndex, int defaultHorizAdvanceX, SingleSubst arabInitSubst, SingleSubst arabMediSubst, SingleSubst arabTermSubst, String code) |
protected static String | getKerningPairAsSVG(KerningPair kp, PostTable post) |
protected static String | getSVGFontFaceElement(Font font) |
static void | main(String[] args)
Starts the application. |
protected static void | writeFontAsSVGFragment(PrintStream ps, Font font, String id, int first, int last, boolean autoRange, boolean forceAscii)
Returns a <font>...</font> block,
defining the specified font.
|
protected static void | writeSvgBegin(PrintStream ps) |
protected static void | writeSvgDefsBegin(PrintStream ps) |
protected static void | writeSvgDefsEnd(PrintStream ps) |
protected static void | writeSvgEnd(PrintStream ps) |
protected static void | writeSvgTestCard(PrintStream ps, String fontFamily) |
Parameters: args an array of command-line arguments
Parameters: font The TrueType font to be converted to SVG id An XML id attribute for the font element first The first character in the output range last The last character in the output range forceAscii Force the use of the ASCII character map