[xep-support] font size in SVGs

Oliver Becker obecker at informatik.hu-berlin.de
Thu Jan 8 06:24:07 PST 2004


Hello,

it seems that text appearing within an SVG graphic is displayed too big.
Attached there are two files:
- box.svg a very simple example
- box.png a raster image produced with batik

Both in box.png as well as displayed in IE (using Acrobat's SVG viewer)
the text fits perfectly into the surrounding box.

With XEP 3.7 the text is displayed too big, the letters A and G overlap
the left and right borders resp.

Is this a bug or again an oversight on my side?

Best regards,
Oliver



/-------------------------------------------------------------------\
|  ob|do        Dipl.Inf. Oliver Becker                             |
|  --+--        E-Mail: obecker at informatik.hu-berlin.de             |
|  op|qo        WWW:    http://www.informatik.hu-berlin.de/~obecker |
\-------------------------------------------------------------------/
-------------- next part --------------
<?xml version="1.0" encoding="iso-8859-1"?>
<svg xmlns="http://www.w3.org/2000/svg"
     xmlns:xlink="http://www.w3.org/1999/xlink"
     width="120" height="60">

  <style type="text/css">
    text { font-size: 14pt; text-anchor: middle; }
  </style>

    <rect x="10" y="10" width="100" height="40" rx="9" ry="9"
          style="stroke: black; fill: #dddddd;" />
    <text x="60" y="36">ABCDEFG</text>

</svg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: box.png
Type: application/octet-stream
Size: 2200 bytes
Desc: box.png
URL: <http://lists.renderx.com/pipermail/xep-support/attachments/20040108/c3ad4ee7/attachment.obj>


More information about the Xep-support mailing list