Title: SVGGraphics2D & Fonts

Hi all,

        I am using a SVGGraphics2D to build my graphic from Java. When I use drawString(string, x, y)  for drawing my text. I'm guessing I need to use the Font Converter to convert my TrueType font to SVG (which I have done). Now, where do I put the SVG so the setFont adds the font to the defs? Or do I need to add contents of the converted SVG (the <defs> <font ....> </font> </defs>) to the dom separately? Has anyone come up with a convention for storing svg fonts for embedding?

I know I can use draw() instead, but I would rather have the fonts embedded  - as this allows the text search facilities.

tia
Brigette Muller
Cox Target Media

Reply via email to