[xep-support] font size in SVGs

From: Oliver Becker (obecker@informatik.hu-berlin.de)
Date: Thu Jan 08 2004 - 06:24:07 PST

  • Next message: Nikolai Grigoriev: "Re: [xep-support] Invalid license file"

    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@informatik.hu-berlin.de |
    | op|qo WWW: http://www.informatik.hu-berlin.de/~obecker |
    \-------------------------------------------------------------------/


    <?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>


    -------------------
    (*) To unsubscribe, send a message with words 'unsubscribe xep-support'
    in the body of the message to majordomo@renderx.com from the address
    you are subscribed from.
    (*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/tos.html




    This archive was generated by hypermail 2.1.5 : Thu Jan 08 2004 - 06:31:56 PST