org.apache.batik.svggen
public class SVGFont extends AbstractSVGConverter
Field Summary | |
---|---|
static float | BOLD |
static float | DEMIBOLD |
static float | DEMILIGHT |
static float | EXTRABOLD |
static float | EXTRA_LIGHT |
static float | HEAVY |
static float | LIGHT |
static float | MEDIUM |
static float | POSTURE_OBLIQUE |
static float | POSTURE_REGULAR |
static float | REGULAR |
static float | SEMIBOLD |
static float | ULTRABOLD |
Constructor Summary | |
---|---|
SVGFont(SVGGeneratorContext generatorContext) |
Method Summary | |
---|---|
static String | familyToSVG(Font font) |
void | recordFontUsage(String string, Font font)
Records that the specified font has been used to draw the text string.
|
static String | styleToSVG(Font font) |
SVGDescriptor | toSVG(GraphicContext gc)
Converts part or all of the input GraphicContext into
a set of attribute/value pairs and related definitions
|
SVGFontDescriptor | toSVG(Font font, FontRenderContext frc) |
static String | weightToSVG(Font font) |
Parameters: generatorContext used to build Elements
Parameters: font whose family should be converted to an SVG string value.
Parameters: font whose style should be converted to an SVG string value.
Parameters: gc GraphicContext to be converted
Returns: descriptor of the attributes required to represent some or all of the GraphicContext state, along with the related definitions
See Also: SVGDescriptor
Parameters: font Font object which should be converted to a set of SVG attributes frc The FontRenderContext which will be used to generate glyph elements for the SVGFont definition element
Returns: description of attribute values that describe the font
Parameters: font whose weight should be converted to an SVG string value. Note that there is loss of precision for semibold and extrabold.