Hi Michael,
"Bishop, Michael W. CONTR J9C880" <[EMAIL PROTECTED]> wrote on
02/06/2006 02:14:26 PM:
> Is there a parser that will allow me to parse style information from an
SVG
> element into a Font object based on style elements like font-family,
font-
> weight, font-style, and font-size?
Heh! If only font selection were so simple. You can get close
with
the code in SVGTextElementBridge.getFontFamilyList. First off this will
result in a list of possible font familes (which Batik selects from based
on actual availability and ability to display the text). Second some of
these may be SVG Font references.
You might also look at batik.gvt.font.fontFamilyResolver which
does the family -> AWT font mapping (other code handles SVG fonts).
> I want to be able to “edit” a text element and have the current font
> information pre-chosen; font, pt size, Bold, Italic, Underline, etc.
The above will get you close but more or less can't give
'full fidelity' which is probably fine for your needs...