You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by vh...@apache.org on 2001/11/19 14:49:01 UTC

cvs commit: xml-batik/test-references/org/apache/batik/svggen/rendering Bug4945.png ContextBug4945.png

vhardy      01/11/19 05:49:01

  Added:       test-references/org/apache/batik/svggen Bug4945.svg
                        ContextBug4945.svg
               test-references/org/apache/batik/svggen/rendering
                        Bug4945.png ContextBug4945.png
  Log:
  Regression test references for org.apache.batik.svggen.Bug4945.
  
  Revision  Changes    Path
  1.1                  xml-batik/test-references/org/apache/batik/svggen/Bug4945.svg
  
  Index: Bug4945.svg
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  
  <!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.0//EN' 'http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd'>
  <svg stroke-dasharray="none" shape-rendering="auto" xmlns="http://www.w3.org/2000/svg" font-family="&apos;Arial&apos;" width="300" text-rendering="auto" fill-opacity="1" contentScriptType="text/ecmascript" color-rendering="auto" color-interpolation="auto" preserveAspectRatio="xMidYMid meet" font-size="12" fill="black" stroke="black" image-rendering="auto" stroke-miterlimit="10" zoomAndPan="magnify" version="1.0" stroke-linecap="square" stroke-linejoin="miter" contentStyleType="text/css" font-style="normal" height="400" stroke-width="1" stroke-dashoffset="0" font-weight="normal" stroke-opacity="1">
    <!--Generated by the Batik Graphics2D SVG Generator-->
    <defs id="genericDefs" />
    <g>
      <g text-rendering="optimizeLegibility" shape-rendering="geometricPrecision" transform="matrix(1.5,0,0,3,-10,-80)">
        <text xml:space="preserve" x="20" y="40" stroke="none">Scaled Font
        </text>
      </g>
      <g text-rendering="optimizeLegibility" shape-rendering="geometricPrecision" transform="matrix(1,0,0,1,50,20)">
        <text xml:space="preserve" x="20" y="80" stroke="none">Translated Font
        </text>
      </g>
      <g text-rendering="optimizeLegibility" shape-rendering="geometricPrecision">
        <line y2="80" fill="none" x1="20" x2="120" y1="80" />
        <text xml:space="preserve" x="20" y="120" transform="matrix(1,0.5,0.5,1,-60,-10)" stroke="none">Sheared Font
        </text>
      </g>
      <g text-rendering="optimizeLegibility" shape-rendering="geometricPrecision" transform="matrix(0.7071067811865476,0.7071067811865475,-0.7071067811865475,0.7071067811865476,149.28932188134524,-120.41630560342614)">
        <text xml:space="preserve" x="220" y="120" stroke="none">Rotated Font
        </text>
      </g>
    </g>
  </svg>
  
  
  
  1.1                  xml-batik/test-references/org/apache/batik/svggen/ContextBug4945.svg
  
  Index: ContextBug4945.svg
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  
  <!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.0//EN' 'http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd'>
  <svg contentScriptType="text/ecmascript" width="300" zoomAndPan="magnify" class="testC10" contentStyleType="text/css" height="400" preserveAspectRatio="xMidYMid meet" xmlns="http://www.w3.org/2000/svg" version="1.0">
    <!--Generated by the Batik Test Framework. Test:éj-->
    <defs id="genericDefs" />
    <g>
      <style type="text/css" xml:space="preserve">
        <![CDATA[.testC1 {shape-rendering:geometricPrecision;text-rendering:optimizeLegibility;}
  .testC2 {stroke:none;}
  .testC3 {shape-rendering:geometricPrecision;text-rendering:optimizeLegibility;}
  .testC4 {stroke:none;}
  .testC5 {shape-rendering:geometricPrecision;text-rendering:optimizeLegibility;}
  .testC6 {fill:none;}
  .testC7 {stroke:none;}
  .testC8 {shape-rendering:geometricPrecision;text-rendering:optimizeLegibility;}
  .testC9 {stroke:none;}
  .testC10 {stroke-dashoffset:0;text-rendering:auto;color-rendering:auto;stroke-linecap:square;fill:black;font-size:12;stroke-linejoin:miter;font-weight:normal;stroke:black;fill-opacity:1;font-style:normal;stroke-dasharray:none;stroke-miterlimit:10;color-interpolation:auto;image-rendering:auto;shape-rendering:auto;font-family:'Arial';stroke-width:1;stroke-opacity:1;}
  ]]>
      </style>
      <g>
        <defs id="testdefs1">
          <font horiz-adv-x="112.5" id="testfont1">
            <font-face ascent="276.48926" descent="58.666992" units-per-em="100" font-family="Arial" font-style="normal" font-weight="normal" />
            <missing-glyph horiz-adv-x="112.5" d="M18.75 0 L18.75 187.5 L93.75 187.5 L93.75 0 L18.75 0 ZM21.09375 4.6875 L91.40625 4.6875 L91.40625 182.8125 L21.09375 182.8125 L21.09375 4.6875 Z" />
            <glyph unicode="t" horiz-adv-x="41.674805" d="M38.671875 23.578125 L40.578125 0.296875 Q35.015625 -2.03125 30.609375 -2.03125 Q23.4375 -2.03125 19.484375 2.5 Q15.53125 7.03125 13.921875 14.4296875 Q12.3125 21.828125 12.3125 45.5625 L12.3125 135.0625 L2.640625 135.0625 L2.640625 155.5625 L12.3125 155.5625 L12.3125 194.09375 L25.421875 209.90625 L25.421875 155.5625 L38.671875 155.5625 L38.671875 135.0625 L25.421875 135.0625 L25.421875 44.09375 Q25.421875 32.8125 26.1171875 29.59375 Q26.8125 26.375 28.3828125 24.46875 Q29.953125 22.5625 32.890625 22.5625 Q35.078125 22.5625 38.671875 23.578125 Z" />
            <glyph unicode="n" horiz-adv-x="83.42285" d="M9.890625 0 L9.890625 155.5625 L21.75 155.5625 L21.75 133.453125 Q30.328125 159.078125 46.515625 159.078125 Q53.546875 159.078125 59.4375 154.0234375 Q65.328125 148.96875 68.2578125 140.765625 Q71.1875 132.5625 72.359375 121.296875 Q73.09375 113.96875 73.09375 95.65625 L73.09375 0 L59.90625 0 L59.90625 94.625 Q59.90625 110.75 58.375 118.7265625 Q56.84375 126.703125 52.921875 131.46875 Q49 136.234375 43.71875 136.234375 Q35.296875 136.234375 29.1875 125.5390625 Q23.078125 114.84375 23.078125 84.96875 L23.078125 0 L9.890625 0 Z" />
            <glyph unicode="o" horiz-adv-x="83.42285" d="M4.984375 77.78125 Q4.984375 121 17 141.796875 Q27.03125 159.078125 41.453125 159.078125 Q57.5 159.078125 67.6796875 138.0625 Q77.859375 117.046875 77.859375 79.984375 Q77.859375 49.953125 73.3515625 32.7421875 Q68.84375 15.53125 60.2421875 6.015625 Q51.640625 -3.5 41.453125 -3.5 Q25.125 -3.5 15.0546875 17.4375 Q4.984375 38.375 4.984375 77.78125 ZM18.53125 77.78125 Q18.53125 47.90625 25.046875 33.0390625 Q31.5625 18.171875 41.453125 18.171875 Q51.265625 18.171875 57.7890625 33.109375 Q64.3125 48.046875 64.3125 78.65625 Q64.3125 107.515625 57.7578125 122.3828125 Q51.203125 137.25 41.453125 137.25 Q31.5625 137.25 25.046875 122.4609375 Q18.53125 107.671875 18.53125 77.78125 Z" />
            <glyph unicode="F" horiz-adv-x="91.62598" d="M12.3125 0 L12.3125 214.75 L84.734375 214.75 L84.734375 189.40625 L26.515625 189.40625 L26.515625 122.90625 L76.90625 122.90625 L76.90625 97.5625 L26.515625 97.5625 L26.515625 0 L12.3125 0 Z" />
            <glyph unicode=" " horiz-adv-x="41.674805" d="" />
            <glyph unicode="d" horiz-adv-x="83.42285" d="M60.359375 0 L60.359375 19.625 Q52.953125 -3.5 38.59375 -3.5 Q29.296875 -3.5 21.5 6.75 Q13.703125 17 9.4140625 35.3828125 Q5.125 53.765625 5.125 77.640625 Q5.125 100.921875 9.0078125 119.8984375 Q12.890625 138.875 20.65625 148.9765625 Q28.421875 159.078125 38.015625 159.078125 Q45.046875 159.078125 50.5390625 153.1484375 Q56.03125 147.21875 59.46875 137.703125 L59.46875 214.75 L72.578125 214.75 L72.578125 0 L60.359375 0 ZM18.671875 77.640625 Q18.671875 47.75 24.9765625 32.9609375 Q31.28125 18.171875 39.84375 18.171875 Q48.484375 18.171875 54.53125 32.3046875 Q60.578125 46.4375 60.578125 75.4375 Q60.578125 107.375 54.421875 122.3125 Q48.265625 137.25 39.265625 137.25 Q30.46875 137.25 24.5703125 122.8984375 Q18.671875 108.546875 18.671875 77.640625 Z" />
            <glyph unicode="e" horiz-adv-x="83.42285" d="M63.140625 50.09375 L76.765625 46.734375 Q73.53125 22.859375 64.8203125 9.6796875 Q56.109375 -3.5 42.546875 -3.5 Q25.484375 -3.5 15.4921875 17.515625 Q5.5 38.53125 5.5 76.46875 Q5.5 115.71875 15.6015625 137.3984375 Q25.703125 159.078125 41.828125 159.078125 Q57.421875 159.078125 67.3125 137.84375 Q77.203125 116.609375 77.203125 78.078125 Q77.203125 75.734375 77.125 71.046875 L19.109375 71.046875 Q19.84375 45.40625 26.3671875 31.7890625 Q32.890625 18.171875 42.625 18.171875 Q49.875 18.171875 55 25.7890625 Q60.125 33.40625 63.140625 50.09375 ZM19.84375 92.71875 L63.28125 92.71875 Q62.40625 112.359375 58.296875 122.171875 Q52 137.40625 41.96875 137.40625 Q32.890625 137.40625 26.703125 125.25 Q20.515625 113.09375 19.84375 92.71875 Z" />
            <glyph unicode="l" horiz-adv-x="33.325195" d="M9.59375 0 L9.59375 214.75 L22.78125 214.75 L22.78125 0 L9.59375 0 Z" />
            <glyph unicode="a" horiz-adv-x="83.42285" d="M60.640625 19.1875 Q53.328125 6.734375 46.546875 1.6171875 Q39.765625 -3.5 32 -3.5 Q19.1875 -3.5 12.3046875 9.015625 Q5.421875 21.53125 5.421875 41.015625 Q5.421875 52.4375 8.0234375 61.890625 Q10.625 71.34375 14.8359375 77.0546875 Q19.046875 82.765625 24.3125 85.6875 Q28.203125 87.75 36.03125 89.65625 Q52 93.453125 59.546875 98.734375 Q59.625 104.15625 59.625 105.609375 Q59.625 121.734375 55.890625 128.328125 Q50.828125 137.25 40.875 137.25 Q31.5625 137.25 27.1328125 130.734375 Q22.703125 124.21875 20.578125 107.671875 L7.6875 111.1875 Q9.453125 127.734375 13.4765625 137.9140625 Q17.5 148.09375 25.1171875 153.5859375 Q32.734375 159.078125 42.78125 159.078125 Q52.734375 159.078125 58.9609375 154.390625 Q65.1875 149.703125 68.1171875 142.6015625 Q71.046875 135.5 72.21875 124.65625 Q72.875 117.921875 72.875 100.34375 L72.875 65.1875 Q72.875 28.421875 73.71875 18.6796875 Q74.5625 8.9375 77.046875 0 L63.28125 0 Q61.234375 8.203125 60.640625 19.1875 ZM59.546875 78.078125 Q52.375 72.21875 38.015625 68.109375 Q29.890625 65.765625 26.515625 62.8359375 Q23.140625 59.90625 21.3125 54.2734375 Q19.484375 48.640625 19.484375 41.75 Q19.484375 31.203125 23.4765625 24.171875 Q27.46875 17.140625 35.15625 17.140625 Q42.78125 17.140625 48.7109375 23.8046875 Q54.640625 30.46875 57.421875 42.046875 Q59.546875 50.984375 59.546875 68.40625 L59.546875 78.078125 Z" />
            <glyph unicode="c" horiz-adv-x="75.0" d="M60.640625 56.984375 L73.609375 53.609375 Q71.484375 26.8125 62.734375 11.65625 Q53.984375 -3.5 41.234375 -3.5 Q25.265625 -3.5 15.5625 17.3671875 Q5.859375 38.234375 5.859375 77.203125 Q5.859375 102.390625 10.03125 121.2890625 Q14.203125 140.1875 22.7421875 149.6328125 Q31.28125 159.078125 41.3125 159.078125 Q53.984375 159.078125 62.0390625 146.265625 Q70.09375 133.453125 72.359375 109.859375 L59.546875 105.90625 Q57.71875 121.578125 53.0625 129.4921875 Q48.40625 137.40625 41.828125 137.40625 Q31.859375 137.40625 25.6328125 123.125 Q19.40625 108.84375 19.40625 77.9375 Q19.40625 46.578125 25.4140625 32.375 Q31.421875 18.171875 41.09375 18.171875 Q48.859375 18.171875 54.0546875 27.6875 Q59.25 37.203125 60.640625 56.984375 Z" />
            <glyph unicode="S" horiz-adv-x="100.04883" d="M6.734375 69 L20.140625 71.34375 Q21.09375 55.21875 24.5703125 44.8984375 Q28.046875 34.578125 35.375 28.203125 Q42.703125 21.828125 51.859375 21.828125 Q59.984375 21.828125 66.2109375 26.6640625 Q72.4375 31.5 75.4765625 39.921875 Q78.515625 48.34375 78.515625 58.296875 Q78.515625 68.40625 75.5859375 75.953125 Q72.65625 83.5 65.921875 88.625 Q61.59375 92 46.796875 99.1015625 Q32 106.203125 26.078125 112.5 Q18.390625 120.5625 14.6171875 132.5 Q10.84375 144.4375 10.84375 159.234375 Q10.84375 175.484375 15.453125 189.625 Q20.0625 203.765625 28.9296875 211.0859375 Q37.796875 218.40625 48.640625 218.40625 Q60.578125 218.40625 69.6953125 210.71875 Q78.8125 203.03125 83.71875 188.0859375 Q88.625 173.140625 88.984375 154.25 L75.359375 152.203125 Q74.265625 172.5625 67.9296875 182.9609375 Q61.59375 193.359375 49.21875 193.359375 Q36.328125 193.359375 30.4296875 183.9140625 Q24.53125 174.46875 24.53125 161.140625 Q24.53125 149.5625 28.71875 142.09375 Q32.8125 134.625 50.1328125 126.7890625 Q67.453125 118.953125 73.90625 113.09375 Q83.28125 104.4375 87.75 91.1875 Q92.21875 77.9375 92.21875 60.640625 Q92.21875 43.5 87.3046875 28.34375 Q82.390625 13.1875 73.203125 4.7734375 Q64.015625 -3.640625 52.515625 -3.640625 Q37.9375 -3.640625 28.0859375 4.84375 Q18.234375 13.328125 12.6328125 30.3984375 Q7.03125 47.46875 6.734375 69 Z" />
            <glyph unicode="s" horiz-adv-x="50.0" d="M3.078125 15.484375 L11.765625 16.84375 Q12.5 11.625 15.84375 8.84375 Q19.1875 6.0625 25.203125 6.0625 Q31.25 6.0625 34.1796875 8.5234375 Q37.109375 10.984375 37.109375 14.3125 Q37.109375 17.28125 34.515625 19 Q32.71875 20.171875 25.53125 21.96875 Q15.875 24.421875 12.140625 26.203125 Q8.40625 27.984375 6.4765625 31.1328125 Q4.546875 34.28125 4.546875 38.09375 Q4.546875 41.546875 6.1328125 44.5078125 Q7.71875 47.46875 10.453125 49.421875 Q12.5 50.921875 16.0390625 51.9765625 Q19.578125 53.03125 23.640625 53.03125 Q29.734375 53.03125 34.3515625 51.2734375 Q38.96875 49.515625 41.1640625 46.5078125 Q43.359375 43.5 44.1875 38.484375 L35.59375 37.3125 Q35.015625 41.3125 32.203125 43.5546875 Q29.390625 45.796875 24.265625 45.796875 Q18.21875 45.796875 15.625 43.796875 Q13.03125 41.796875 13.03125 39.109375 Q13.03125 37.40625 14.109375 36.03125 Q15.1875 34.625 17.484375 33.6875 Q18.796875 33.203125 25.25 31.453125 Q34.578125 28.953125 38.2578125 27.3671875 Q41.9375 25.78125 44.0390625 22.7578125 Q46.140625 19.734375 46.140625 15.234375 Q46.140625 10.84375 43.578125 6.9609375 Q41.015625 3.078125 36.1796875 0.9609375 Q31.34375 -1.15625 25.25 -1.15625 Q15.140625 -1.15625 9.84375 3.0390625 Q4.546875 7.234375 3.078125 15.484375 Z" />
            <glyph unicode="r" horiz-adv-x="33.30078" d="M6.5 0 L6.5 51.859375 L14.40625 51.859375 L14.40625 44 Q17.4375 49.515625 20 51.2734375 Q22.5625 53.03125 25.640625 53.03125 Q30.078125 53.03125 34.671875 50.203125 L31.640625 42.046875 Q28.421875 43.953125 25.203125 43.953125 Q22.3125 43.953125 20.015625 42.21875 Q17.71875 40.484375 16.75 37.40625 Q15.28125 32.71875 15.28125 27.15625 L15.28125 0 L6.5 0 Z" />
            <glyph unicode="T" horiz-adv-x="61.083984" d="M25.921875 0 L25.921875 63.140625 L2.34375 63.140625 L2.34375 71.578125 L59.078125 71.578125 L59.078125 63.140625 L35.40625 63.140625 L35.40625 0 L25.921875 0 Z" />
            <glyph unicode="h" horiz-adv-x="55.604034" d="M6.609375 -3.296875 L-29.234375 68.40625 L-20.4375 64 L-7.578125 38.265625 Q-4.984375 42.328125 4.421875 37.625 Q10.1875 34.75 15.578125 30.3515625 Q20.96875 25.953125 24.8046875 21.0234375 Q28.640625 16.09375 32.453125 8.46875 L48.90625 -24.453125 L40.09375 -20.046875 L23.640625 12.875 Q20.34375 19.46875 15.984375 23.90625 Q11.625 28.34375 6.375 30.96875 Q2.46875 32.921875 0.0390625 32.609375 Q-2.390625 32.296875 -2.125 29.5625 Q-1.859375 26.828125 1.203125 20.71875 L15.40625 -7.703125 L6.609375 -3.296875 Z" />
            <glyph unicode="R" horiz-adv-x="51.047974" d="M5.546875 -5.546875 L56.15625 45.0625 L78.59375 22.625 Q85.375 15.84375 87.5234375 10.9609375 Q89.671875 6.078125 88.328125 0.515625 Q86.984375 -5.046875 82.8125 -9.21875 Q77.421875 -14.609375 70.234375 -14.8125 Q63.046875 -15.015625 54.765625 -8.734375 Q56.171875 -12.671875 56.296875 -15.296875 Q56.546875 -20.921875 55.125 -27.59375 L50.15625 -50.15625 L41.734375 -41.734375 L45.546875 -24.515625 Q47.171875 -17.015625 47.6953125 -12.7109375 Q48.21875 -8.40625 47.6796875 -5.9296875 Q47.140625 -3.453125 45.984375 -1.515625 Q45.078125 -0.140625 42.484375 2.453125 L34.71875 10.21875 L12.25 -12.25 L5.546875 -5.546875 ZM40.515625 16.015625 L54.921875 1.609375 Q59.5 -2.96875 63.046875 -4.609375 Q66.59375 -6.25 70.0234375 -5.5078125 Q73.453125 -4.765625 75.90625 -2.3125 Q79.5 1.28125 79.2109375 6.1953125 Q78.921875 11.109375 73.28125 16.75 L57.265625 32.765625 L40.515625 16.015625 Z" />
          </font>
        </defs>
        <g class="testC1" transform="matrix(1.5,0,0,3,-10,-80)">
          <text xml:space="preserve" x="20" y="40" class="testC2">Scaled Font
          </text>
        </g>
        <g class="testC3" transform="matrix(1,0,0,1,50,20)">
          <text xml:space="preserve" x="20" y="80" class="testC4">Translated Font
          </text>
        </g>
        <g class="testC5">
          <line y2="80" x1="20" class="testC6" x2="120" y1="80" />
          <text xml:space="preserve" x="20" y="120" class="testC7" transform="matrix(1,0.5,0.5,1,-60,-10)">Sheared Font
          </text>
        </g>
        <g class="testC8" transform="matrix(0.7071067811865476,0.7071067811865475,-0.7071067811865475,0.7071067811865476,149.28932188134524,-120.41630560342614)">
          <text xml:space="preserve" x="220" y="120" class="testC9">Rotated Font
          </text>
        </g>
      </g>
    </g>
  </svg>
  
  
  
  1.1                  xml-batik/test-references/org/apache/batik/svggen/rendering/Bug4945.png
  
  	<<Binary file>>
  
  
  1.1                  xml-batik/test-references/org/apache/batik/svggen/rendering/ContextBug4945.png
  
  	<<Binary file>>
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-dev-help@xml.apache.org