title: How can I set a font-family instead of font when using Batik's SVGGraphics2D?
body: <p>I currently have the following code using Batik's SVGGraphics2D:</p>
  
  <pre><code>...
  final SVGGraphics2D svgGraphics2D = new SVGGraphics2D(svgGeneratorContext, false);
  svgGraphics2D.setSVGCanvasSize(new Dimension(width, height));
  svgGraphics2D.setFont(font);
  ...
  </code></pre>
  
  <p>As a result, if <code>font</code> is an available <code>Font</code> on the system on which the code is executed, the correct attribute is added to the resulting SVG file.</p>
  
  <p>However, if the font is missing (for instance "Verdana" on a linux box) a default font is used (<code>font-family:'Dialog'</code> is added). </p>
  
  <p>Thus, instead of specifying a font, I would like to pass a font-family in order to have <code>font-family="DejaVu Sans,Verdana,Geneva,sans-serif"</code> in the resulting SVG. How can I achieve this knowing that, if I'm not wrong, the API only accepts <code>Font</code> parameters ?</p>
  
  <p>I hope that there's a easier way than using a xslt to transform the xml output.</p>
  
  <p>Thank you in advance.</p>