You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by ke...@apache.org on 2002/06/14 16:29:49 UTC

cvs commit: xml-fop/test/resources/fop/svg link.fo link.svg text.svg

keiron      2002/06/14 07:29:49

  Added:       test/resources/fop/svg link.fo link.svg text.svg
  Log:
  some svg test, links and text
  
  Revision  Changes    Path
  1.1                  xml-fop/test/resources/fop/svg/link.fo
  
  Index: link.fo
  ===================================================================
  <?xml version="1.0" encoding="utf-8"?>
  
  <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
  
    <fo:layout-master-set>
      <fo:simple-page-master master-name="simple"
                    page-height="29.7cm" 
                    page-width="21cm"
                    margin-top="1cm" 
                    margin-bottom="2cm" 
                    margin-left="2.5cm" 
                    margin-right="2.5cm">
        <fo:region-body margin-top="3cm"/>
        <fo:region-before extent="3cm"/>
        <fo:region-after extent="1.5cm"/>
      </fo:simple-page-master>
    </fo:layout-master-set>
  
    <fo:page-sequence master-reference="simple">
  
      <fo:flow flow-name="xsl-region-body">
  
        <fo:block space-after.optimum="40pt">                
          Embedded/Image SVG
        </fo:block>
  
        <fo:block>                
  <fo:external-graphic src="link.svg"/>
        </fo:block>
  
      </fo:flow>
    </fo:page-sequence>
  </fo:root>
  
  
  
  
  1.1                  xml-fop/test/resources/fop/svg/link.svg
  
  Index: link.svg
  ===================================================================
  <?xml version="1.0" encoding="iso-8859-1"?>
  <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20001102//EN"
        "http://www.w3.org/TR/2000/CR-SVG-20001102/DTD/svg-20001102.dtd">
  <svg width="400" height="400" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
  
  <g>
  
  <a xlink:href="#svgView(viewBox(110,110,80,80))">
  <rect x="10" y="10" width="80" height="80" style="fill:darkred;stroke:black;stroke-width:3"/>
  <text x="15" y="60" style="font-size:18;fill:green">GREEN</text>
  </a>
  
  <a xlink:href="http://xml.apache.org/fop/">
  <rect x="110" y="10" width="80" height="80" style="fill:lightblue;stroke:black;stroke-width:3"/>
  <text x="130" y="60" style="font-size:18;fill:blue">FOP</text>
  </a>
  
  <a xlink:href="jpeg.svg#svgView(viewBox(0,0,200,200))">
  <rect x="10" y="110" width="80" height="80" style="fill:yellow;stroke:black;stroke-width:3"/>
  <text x="20" y="150" style="font-size:14;fill:purple">Another</text>
  <text x="35" y="165" style="font-size:14;fill:purple">file</text>
  </a>
  
  <a xlink:href="#svgView(viewBox(10,10,80,80))">
  <rect x="110" y="110" width="80" height="80" style="fill:darkgreen;stroke:black;stroke-width:3"/>
  <text x="130" y="160" style="font-size:18;fill:red">RED</text>
  </a>
  
  </g>
  
  </svg>
  
  
  
  
  1.1                  xml-fop/test/resources/fop/svg/text.svg
  
  Index: text.svg
  ===================================================================
  <?xml version="1.0" encoding="iso-8859-1"?>
  <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20001102//EN"
        "http://www.w3.org/TR/2000/CR-SVG-20001102/DTD/svg-20001102.dtd">
  <svg width="400" height="400" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
  
  <g>
  
  <text x="15" y="20" style="font-size:18">Various Text Elements</text>
  
  <text x="15" y="40" style="font-size:12;font-family:Helvetica">Normal Text in Helvetica,</text>
  <text x="152" y="40" style="font-size:12;font-family:Symbol">Symbol,</text>
  <text x="199" y="40" style="font-size:12;font-family:blah">Unknown,</text>
  <text x="257" y="40" style="font-size:12;font-family:Courier">Courier,</text>
  <text x="318" y="40" style="font-size:12;font-family:Arial">Arial</text>
  
  <g transform="translate(15,55) scale(0.25)">
  <text x="0" y="0" style="font-size:40">Large Text (scaled)</text>
  </g>
  <text x="120" y="55" style="font-size:10">Normal Text (unscaled)</text>
  
  <text x="15" y="70" style="font-size:12.5">fractional Text</text>
  
  <text x="15" y="85" style="font-size:12;fill:red">Coloured Text</text>
  <text x="15" y="100" style="font-size:12;fill:none;stroke:red;stroke-width:0.4">Stroked Text</text>
  <text x="15" y="115" style="font-size:12;fill:blue;stroke:red;stroke-width:0.4">Stroked/Filled Text</text>
  <text x="15" y="130" style="font-size:12" text-decoration="overline">Overline Text</text>
  <text x="15" y="145" style="font-size:12" text-decoration="underline">Underline Text</text>
  <text x="15" y="160" style="font-size:12" text-decoration="line-through">Strikethrough Text</text>
  
  <text x="15" y="185" style="font-size:12">Text <tspan fill="blue" dy="-10">with</tspan> <tspan fill="green" dy="20">tspan</tspan></text>
  
   <defs>
   <path id="Path2" style="fill:none; stroke:blue;" transform="scale(0.15,0.15)"
    d="M 100 200 C 200 100 300 0 400 100 C 500 200 600 300 700 200 C 800 100 900 100 900 100"/>
   <path id="Path1" style="fill:none; stroke:blue;" transform="scale(0.30,0.50)"
        d="M 100 100 C100 0 400 00 400 100"/>
  
  </defs>
  
  <text transform="translate(20, 220)" font-size="15">
  <textPath xlink:href="#Path2"><tspan baseline-shift="super" fill="green">super</tspan> and <tspan baseline-shift="sub" fill="red">sub</tspan>scripts</textPath>
  </text>
  
  <g transform="translate(150, 200)" style="font-weight:bold" id="fopdiamond">
   <text transform="matrix(-0.34202 -0.93969 0.93969 -0.34202 47 45)">FOP</text>
   <text transform="matrix(0.34202 0.93969 -0.93969 0.34202 44 7)">FOP</text>
   <text transform="matrix(-0.34202 0.93969 -0.93969 -0.34202 52 23)">FOP</text>
   <text transform="matrix(0.34202 -0.93969 0.93969 0.34202 38 28)">FOP</text>
  </g>
  
  <g>
    <filter id="blur" filterUnits="objectBoundingBox" primitiveUnits="objectBoundingBox" x="-20%" y="-20%" width="120%" height="120%" >
    <feGaussianBlur stdDeviation="2 2" x="-10%" y="-10%" width="120%" height="120%" />
    </filter>
  
  <text x="15" y="290" style="font-size:16;filter:url(#blur)">Filtered Text</text>
  </g>
  
  <g>
    <font horiz-adv-x="150" id="Batik">
       <font-face
            font-family="FOPFont"
            units-per-em="240"
            ascent="190"
            descent="50"
            alphabetic="0"/>
  
   <missing-glyph horiz-adv-x="150" d="M20 0 V240 H100 V0 z"/>
  
   <glyph unicode=" " glyph-name=" " horiz-adv-x="100"/>
   <glyph unicode="F" glyph-name="F" horiz-adv-x="130">
                      <path transform="scale(1,-1)translate(-125, -170)"
                        d="M194.825,161.952c-5.238,4.766-10.891,8.285-16.961,10.559c-6.07,2.27-12.863,3.406-20.375,3.406c-7.363,0-12.98-1.922-16.848-5.762c-3.871-3.844-5.805-9.414-5.805-16.719c0-9.359,4.266-16.758,12.805-22.195
                          c8.535-5.438,23.766-10.215,45.695-14.324v-15.789c0-7.09-2.16-12.523-6.477-16.297s-10.523-5.664-18.625-5.664c-6.891,0-11.758,0.992-14.598,2.977s-4.258,5.336-4.258,10.063c0,1.984,0.281,4.27,0.852,6.863s0.855,4.156,0.855,4.688
                          c0,1.07-0.516,1.945-1.547,2.633s-2.352,1.027-3.953,1.027c-3.055,0-5.652-0.816-7.793-2.449s-3.207-3.664-3.207-6.098c0-6.605,3.664-12.625,11-18.055c7.332-5.43,15.977-8.148,25.93-8.148c13.906,0,23.727,2.621,29.465,7.855
                          c5.734,5.238,8.605,14.535,8.605,27.891v42.844c0,6.516,0.621,10.715,1.867,12.594s3.609,2.816,7.086,2.816c0.602,0,1.434-0.035,2.492-0.113c1.055-0.078,1.773-0.117,2.152-0.117c0.527,0,1.02,0.246,1.473,0.73c0.453,0.488,0.68,1.07,0.68,1.742
                          c0,1.574-1.273,2.887-3.816,3.934s-5.785,1.574-9.73,1.574c-4.176,0-7.668-1.039-10.477-3.117s-4.973-5.191-6.488-9.348z M193.037,122.167c-16.43,3.43-27.789,7.273-34.074,11.535c-6.285,4.266-9.426,9.973-9.426,17.129c0,5.559,1.512,9.879,4.543,12.961
                          c3.027,3.086,7.27,4.625,12.723,4.625c7.492,0,13.738-1.941,18.738-5.832c4.996-3.887,7.496-8.813,7.496-14.777v-25.641z"/>
    </glyph>
  
   <glyph unicode="o" glyph-name="o" horiz-adv-x="105">
                      <path transform="scale(1,-1)translate(-125, -170)"
                        d="M194.825,161.952c-5.238,4.766-10.891,8.285-16.961,10.559c-6.07,2.27-12.863,3.406-20.375,3.406c-7.363,0-12.98-1.922-16.848-5.762c-3.871-3.844-5.805-9.414-5.805-16.719c0-9.359,4.266-16.758,12.805-22.195
                          c8.535-5.438,23.766-10.215,45.695-14.324v-15.789c0-7.09-2.16-12.523-6.477-16.297s-10.523-5.664-18.625-5.664c-6.891,0-11.758,0.992-14.598,2.977s-4.258,5.336-4.258,10.063c0,1.984,0.281,4.27,0.852,6.863s0.855,4.156,0.855,4.688
                          c0,1.07-0.516,1.945-1.547,2.633s-2.352,1.027-3.953,1.027c-3.055,0-5.652-0.816-7.793-2.449s-3.207-3.664-3.207-6.098c0-6.605,3.664-12.625,11-18.055c7.332-5.43,15.977-8.148,25.93-8.148c13.906,0,23.727,2.621,29.465,7.855                        c5.734,5.238,8.605,14.535,8.605,27.891v42.844c0,6.516,0.621,10.715,1.867,12.594s3.609,2.816,7.086,2.816c0.602,0,1.434-0.035,2.492-0.113c1.055-0.078,1.773-0.117,2.152-0.117c0.527,0,1.02,0.246,1.473,0.73c0.453,0.488,0.68,1.07,0.68,1.742
                          c0,1.574-1.273,2.887-3.816,3.934s-5.785,1.574-9.73,1.574c-4.176,0-7.668-1.039-10.477-3.117s-4.973-5.191-6.488-9.348z M193.037,122.167c-16.43,3.43-27.789,7.273-34.074,11.535c-6.285,4.266-9.426,9.973-9.426,17.129c0,5.559,1.512,9.879,4.543,12.961
                          c3.027,3.086,7.27,4.625,12.723,4.625c7.492,0,13.738-1.941,18.738-5.832c4.996-3.887,7.496-8.813,7.496-14.777v-25.641z"/>
    </glyph>
  
   <glyph unicode="p" glyph-name="p" horiz-adv-x="105">
                      <path transform="scale(1,-1)translate(-125, -170)"
                        d="M194.825,161.952c-5.238,4.766-10.891,8.285-16.961,10.559c-6.07,2.27-12.863,3.406-20.375,3.406c-7.363,0-12.98-1.922-16.848-5.762c-3.871-3.844-5.805-9.414-5.805-16.719c0-9.359,4.266-16.758,12.805-22.195
                          c8.535-5.438,23.766-10.215,45.695-14.324v-15.789c0-7.09-2.16-12.523-6.477-16.297s-10.523-5.664-18.625-5.664c-6.891,0-11.758,0.992-14.598,2.977s-4.258,5.336-4.258,10.063c0,1.984,0.281,4.27,0.852,6.863s0.855,4.156,0.855,4.688
                          c0,1.07-0.516,1.945-1.547,2.633s-2.352,1.027-3.953,1.027c-3.055,0-5.652-0.816-7.793-2.449s-3.207-3.664-3.207-6.098c0-6.605,3.664-12.625,11-18.055c7.332-5.43,15.977-8.148,25.93-8.148c13.906,0,23.727,2.621,29.465,7.855                        c5.734,5.238,8.605,14.535,8.605,27.891v42.844c0,6.516,0.621,10.715,1.867,12.594s3.609,2.816,7.086,2.816c0.602,0,1.434-0.035,2.492-0.113c1.055-0.078,1.773-0.117,2.152-0.117c0.527,0,1.02,0.246,1.473,0.73c0.453,0.488,0.68,1.07,0.68,1.742
                          c0,1.574-1.273,2.887-3.816,3.934s-5.785,1.574-9.73,1.574c-4.176,0-7.668-1.039-10.477-3.117s-4.973-5.191-6.488-9.348z M193.037,122.167c-16.43,3.43-27.789,7.273-34.074,11.535c-6.285,4.266-9.426,9.973-9.426,17.129c0,5.559,1.512,9.879,4.543,12.961
                          c3.027,3.086,7.27,4.625,12.723,4.625c7.492,0,13.738-1.941,18.738-5.832c4.996-3.887,7.496-8.813,7.496-14.777v-25.641z"/>
    </glyph>
  
      <hkern g1="F"  g2="o"  k="5"/>
      <hkern g1="o"  g2="p"  k="4"/>
    </font>
  
    <text x="15" y="310" font-family="FOPFont" font-size="12">Fop</text>
  </g>
  
  </g>
  
  </svg>
  
  
  
  

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