Uploaded image for project: 'Batik'
  1. Batik
  2. BATIK-1016

Text not showing when not rotated (FreeBSD)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Resolution: Unresolved
    • 1.7
    • None
    • SVG Rasterizer
    • None
    • Operating System: FreeBSD
      Platform: PC

    Description

      I'm having a rather strange problem with the Batik rasterizer running on FreeBSD (8.2). I'm not sure why this occurs - I'm just posting what I know, please ask if you need any additional information.

      I'm trying to render an SVG file to PDF with batik-rasterizer.jar. On my home computer (Arch Linux) everything works as expected. On my server, everything renders - except for the text(s) in the SVG file. However, when I rotate the text slightly (adding transform="rotate(0.01)") the text DOES render correctly.

      I tried several different builds - the binary distribution from the Batik site, Batik 1.7 from FreeBSD ports, and I built Batik 1.8pre from source using the 19/07/12 nightly. All three produce the same result. Trying with and without custom fonts doesn't make any difference either.

      This is a test SVG file I used:
      -------------------------------------------------------------
      <?xml version="1.0" standalone="no" ?>
      <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
      <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="800" height="600" xml:space="preserve">
      <defs>
      <style type="text/css"><![CDATA[
      @font-face

      { font-family: 'BebasNeue'; src: url('fonts/BebasNeue.otf'); }

      @font-face

      { font-family: 'DeliciousRoman'; src: url('fonts/DeliciousRoman.otf'); }

      ]]></style>
      </defs>
      <g transform="translate(453 93) scale(6.64 6.64) rotate(0)">
      <text font-family="'BebasNeue'" font-size="24" font-weight="100" style="stroke: none; stroke-width: 1; fill: rgb(0,100,20); opacity: 1;" transform="translate(-56.5 -18.14)">
      <tspan x="0" y="25.34" fill="rgb(0,100,20)">Hallo wereld!</tspan>
      </text>
      </g>
      <g transform="translate(291 250)">
      <text font-family="'DeliciousRoman'" font-size="40" font-weight="100" style="stroke: none; stroke-width: 1; fill: rgb(0,0,255); opacity: 1;" transform="translate(-144 -30.24)">
      <tspan x="0" y="42.24" fill="rgb(0,0,255)">Dit is een editor...</tspan>
      </text>
      </g>
      </svg>

      -------------------------------------------------------------

      The version above results in an empty PDF.
      When I change the file as follows, both texts are shown in the resulting PDF:

      -------------------------------------------------------------

      11c11
      < <g transform="translate(453 93) scale(6.64 6.64) rotate(0)">

      > <g transform="translate(453 93) scale(6.64 6.64) rotate(0.01)">

      16c16
      < <g transform="translate(291 250)">

      > <g transform="translate(291 250) rotate(0.01)">

      Attachments

        1. testremote1.pdf
          3 kB
          Kevin
        2. testremote1.svg
          1 kB
          Kevin
        3. testremote2.pdf
          5 kB
          Kevin
        4. testremote2.svg
          1 kB
          Kevin

        Activity

          People

            batik-dev@xmlgraphics.apache.org Batik Developer's Mailing list
            kevin@levity.nl Kevin
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: