You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by bu...@apache.org on 2001/07/30 15:58:39 UTC
[Bug 2891] New: - broken svg-graphics (pie-chart) in latest FOP-Snapshots
PLEASE DO NOT REPLY TO THIS MESSAGE. TO FURTHER COMMENT
ON THE STATUS OF THIS BUG PLEASE FOLLOW THE LINK BELOW
AND USE THE ON-LINE APPLICATION. REPLYING TO THIS MESSAGE
DOES NOT UPDATE THE DATABASE, AND SO YOUR COMMENT WILL
BE LOST SOMEWHERE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2891
*** shadow/2891 Mon Jul 30 06:58:39 2001
--- shadow/2891.tmp.23987 Mon Jul 30 06:58:39 2001
***************
*** 0 ****
--- 1,252 ----
+ +============================================================================+
+ | broken svg-graphics (pie-chart) in latest FOP-Snapshots |
+ +----------------------------------------------------------------------------+
+ | Bug #: 2891 Product: Fop |
+ | Status: NEW Version: all |
+ | Resolution: Platform: PC |
+ | Severity: Normal OS/Version: Other |
+ | Priority: Other Component: svg |
+ +----------------------------------------------------------------------------+
+ | Assigned To: fop-dev@xml.apache.org |
+ | Reported By: mgaertner@procoma.de |
+ | CC list: Cc: |
+ +----------------------------------------------------------------------------+
+ | URL: |
+ +============================================================================+
+ | DESCRIPTION |
+ The Following SVG renders fine using FOP 0.18.1
+ Release 0.19.0 doesn't render it at all.
+ latest Snapshots produce broken graphics.
+
+
+ <?xml version="1.0" encoding="iso-8859-1"?>
+ <fo:root xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns:fo="http://www.w3.org/1999/XSL/Format">
+ <fo:layout-master-set>
+ <fo:simple-page-master margin-bottom="10mm" margin-right="10mm" margin-
+ left="10mm" margin-top="10mm" page-height="297mm" page-width="210mm" master-
+ name="titlepage">
+ <fo:region-body margin-bottom="25mm" margin-right="25mm" margin-left="25mm"
+ margin-top="30mm"/>
+ </fo:simple-page-master>
+ <fo:simple-page-master margin-bottom="10mm" margin-right="10mm" margin-
+ left="10mm" margin-top="10mm" page-height="297mm" page-width="210mm" master-
+ name="simple">
+ <fo:region-before extent="20mm"/>
+ <fo:region-body margin-bottom="25mm" margin-right="25mm" margin-left="25mm"
+ margin-top="30mm"/>
+ <fo:region-after extent="15mm"/>
+ </fo:simple-page-master>
+ </fo:layout-master-set>
+ <fo:page-sequence master-name="simple">
+ <fo:static-content flow-name="xsl-region-before">
+ <fo:block text-align="center" font-size="10pt" font-family="Helvetica"/>
+ </fo:static-content>
+ <fo:flow flow-name="xsl-region-body">
+ <fo:block font-size="9pt" font-family="Helvetica">
+ <fo:block space-after.optimum="3em" text-align="center" font-weight="bold" font-
+ family="Helvetica" font-size="24pt">Pie-Chart Example</fo:block>
+ <fo:block/>
+ <fo:instream-foreign-object>
+ <svg:svg height="300" width="300">
+ <svg:defs>
+ <svg:filter id="dropshadow">
+ <svg:feGaussianBlur result="blur" stdDeviation="4" in="SourceAlpha"/>
+ <svg:feOffset result="offsetBlurredAlpha" dy="4" dx="4" in="blur"/>
+ <svg:feMerge>
+ <svg:feMergeNode in="offsetBlurredAlpha"/>
+ <svg:feMergeNode in="SourceGraphic"/>
+ </svg:feMerge>
+ </svg:filter>
+ </svg:defs>
+ <svg:rect style="fill:#E3DFCC;" height="270" width="250" y="5" x="25"/>
+ <svg:g transform="translate(150,150) ">
+ <svg:path style="fill:orange; opacity:0.5; stroke:black; stroke-width:0.5;"
+ d="M 0,0 L 75,0 A 75,75 0 0,1 65,37 z"/>
+ <svg:text style="font-family:Helvetica; font-size:7; fill:black" text-
+ anchor="start" y="21" x="80">Jan (8%)
+ </svg:text>
+ </svg:g>
+ <svg:g transform="translate(150,150) ">
+ <svg:path style="fill:purple; opacity:0.5; stroke:black; stroke-width:0.5;"
+ d="M 0,0 L 65,37 A 75,75 0 0,1 26,70 z"/>
+ <svg:text style="font-family:Helvetica; font-size:7; fill:black" text-
+ anchor="start" y="63" x="54">Feb (11%)
+ </svg:text>
+ </svg:g>
+ <svg:g transform="translate(150,150) ">
+ <svg:path style="fill:white; opacity:0.5; stroke:black; stroke-width:0.5;" d="M
+ 0,0 L 26,70 A 75,75 0 0,1 1,75 z"/>
+ <svg:text style="font-family:Helvetica; font-size:7; fill:black" text-
+ anchor="start" y="82" x="15">Mar (6%)
+ </svg:text>
+ </svg:g>
+ <svg:g transform="translate(150,150) ">
+ <svg:path style="fill:blue; opacity:0.5; stroke:black; stroke-width:0.5;" d="M
+ 0,0 L 1,75 A 75,75 0 0,1 -36,66 z"/>
+ <svg:text style="font-family:Helvetica; font-size:7; fill:black" text-
+ anchor="end" y="80" x="-20">April (8%)
+ </svg:text>
+ </svg:g>
+ <svg:g transform="translate(150,150) ">
+ <svg:path style="fill:violet; opacity:0.5; stroke:black; stroke-width:0.5;"
+ d="M 0,0 L -36,66 A 75,75 0 0,1 -47,58 z"/>
+ <svg:text style="font-family:Helvetica; font-size:7; fill:black" text-
+ anchor="end" y="69" x="-46">May (3%)
+ </svg:text>
+ </svg:g>
+ <svg:g transform="translate(150,150) ">
+ <svg:path style="fill:aqua; opacity:0.5; stroke:black; stroke-width:0.5;" d="M
+ 0,0 L -47,58 A 75,75 0 0,1 -74,15 z"/>
+ <svg:text style="font-family:Helvetica; font-size:7; fill:black" text-
+ anchor="end" y="43" x="-71">June (11%)
+ </svg:text>
+ </svg:g>
+ <svg:g transform="translate(150,150) ">
+ <svg:path style="fill:brown; opacity:0.5; stroke:black; stroke-width:0.5;" d="M
+ 0,0 L -74,15 A 75,75 0 0,1 -70,-27 z"/>
+ <svg:text style="font-family:Helvetica; font-size:7; fill:black" text-
+ anchor="end" y="-7" x="-83">July (9%)
+ </svg:text>
+ </svg:g>
+ <svg:g transform="translate(150,150) ">
+ <svg:path style="fill:green; opacity:0.5; stroke:black; stroke-width:0.5;" d="M
+ 0,0 L -70,-27 A 75,75 0 0,1 38,-65 z"/>
+ <svg:text style="font-family:Helvetica; font-size:7; fill:black" text-
+ anchor="end" y="-78" x="-27">Aug (28%)
+ </svg:text>
+ </svg:g>
+ <svg:g transform="translate(150,150) ">
+ <svg:path style="fill:red; opacity:0.5; stroke:black; stroke-width:0.5;" d="M
+ 0,0 L 38,-65 A 75,75 0 0,1 44,-61 z"/>
+ <svg:text style="font-family:Helvetica; font-size:7; fill:black" text-
+ anchor="start" y="-70" x="45">Sep (1%)
+ </svg:text>
+ </svg:g>
+ <svg:g transform="translate(150,150) ">
+ <svg:path style="fill:silver; opacity:0.5; stroke:black; stroke-width:0.5;"
+ d="M 0,0 L 44,-61 A 75,75 0 0,1 68,-31 z"/>
+ <svg:text style="font-family:Helvetica; font-size:7; fill:black" text-
+ anchor="start" y="-53" x="64">Oct (8%)
+ </svg:text>
+ </svg:g>
+ <svg:g transform="translate(150,150) ">
+ <svg:path style="fill:beige; opacity:0.5; stroke:black; stroke-width:0.5;" d="M
+ 0,0 L 68,-31 A 75,75 0 0,1 74,-13 z"/>
+ <svg:text style="font-family:Helvetica; font-size:7; fill:black" text-
+ anchor="start" y="-25" x="79">Nov (4%)
+ </svg:text>
+ </svg:g>
+ <svg:g transform="translate(150,150) ">
+ <svg:path style="fill:pink; opacity:0.5; stroke:black; stroke-width:0.5;" d="M
+ 0,0 L 74,-13 A 75,75 0 0,1 75,0 z"/>
+ <svg:text style="font-family:Helvetica; font-size:7; fill:black" text-
+ anchor="start" y="-7" x="83">Dec (3%)
+ </svg:text>
+ </svg:g>
+ </svg:svg>
+ </fo:instream-foreign-object>
+ <fo:instream-foreign-object>
+ <svg:svg height="300" width="300">
+ <svg:defs>
+ <svg:filter id="dropshadow">
+ <svg:feGaussianBlur result="blur" stdDeviation="4" in="SourceAlpha"/>
+ <svg:feOffset result="offsetBlurredAlpha" dy="4" dx="4" in="blur"/>
+ <svg:feMerge>
+ <svg:feMergeNode in="offsetBlurredAlpha"/>
+ <svg:feMergeNode in="SourceGraphic"/>
+ </svg:feMerge>
+ </svg:filter>
+ </svg:defs>
+ <svg:rect style="fill:#E3DFCC;" height="270" width="250" y="5" x="25"/>
+ <svg:g transform="translate(150,150) ">
+ <svg:path style="fill:orange; opacity:0.5; stroke:black; stroke-width:0.5;"
+ d="M 0,0 L 75,0 A 75,75 0 0,1 73,18 z"/>
+ <svg:text style="font-family:Helvetica; font-size:7; fill:black" text-
+ anchor="start" y="10" x="82">Jan (4%)
+ </svg:text>
+ </svg:g>
+ <svg:g transform="translate(150,150) ">
+ <svg:path style="fill:purple; opacity:0.5; stroke:black; stroke-width:0.5;"
+ d="M 0,0 L 73,18 A 75,75 0 0,1 24,71 z"/>
+ <svg:text style="font-family:Helvetica; font-size:7; fill:black" text-
+ anchor="start" y="56" x="61">Feb (16%)
+ </svg:text>
+ </svg:g>
+ <svg:g transform="translate(150,150) ">
+ <svg:path style="fill:white; opacity:0.5; stroke:black; stroke-width:0.5;" d="M
+ 0,0 L 24,71 A 75,75 0 0,1 -13,74 z"/>
+ <svg:text style="font-family:Helvetica; font-size:7; fill:black" text-
+ anchor="start" y="83" x="7">Mar (8%)
+ </svg:text>
+ </svg:g>
+ <svg:g transform="translate(150,150) ">
+ <svg:path style="fill:blue; opacity:0.5; stroke:black; stroke-width:0.5;" d="M
+ 0,0 L -13,74 A 75,75 0 0,1 -30,69 z"/>
+ <svg:text style="font-family:Helvetica; font-size:7; fill:black" text-
+ anchor="end" y="79" x="-24">April (4%)
+ </svg:text>
+ </svg:g>
+ <svg:g transform="translate(150,150) ">
+ <svg:path style="fill:violet; opacity:0.5; stroke:black; stroke-width:0.5;"
+ d="M 0,0 L -30,69 A 75,75 0 0,1 -46,59 z"/>
+ <svg:text style="font-family:Helvetica; font-size:7; fill:black" text-
+ anchor="end" y="71" x="-43">May (4%)
+ </svg:text>
+ </svg:g>
+ <svg:g transform="translate(150,150) ">
+ <svg:path style="fill:aqua; opacity:0.5; stroke:black; stroke-width:0.5;" d="M
+ 0,0 L -46,59 A 75,75 0 0,1 -69,30 z"/>
+ <svg:text style="font-family:Helvetica; font-size:7; fill:black" text-
+ anchor="end" y="51" x="-66">June (8%)
+ </svg:text>
+ </svg:g>
+ <svg:g transform="translate(150,150) ">
+ <svg:path style="fill:brown; opacity:0.5; stroke:black; stroke-width:0.5;" d="M
+ 0,0 L -69,30 A 75,75 0 0,1 -69,-30 z"/>
+ <svg:text style="font-family:Helvetica; font-size:7; fill:black" text-
+ anchor="end" y="-0" x="-83">July (13%)
+ </svg:text>
+ </svg:g>
+ <svg:g transform="translate(150,150) ">
+ <svg:path style="fill:green; opacity:0.5; stroke:black; stroke-width:0.5;" d="M
+ 0,0 L -69,-30 A 75,75 0 0,1 6,-75 z"/>
+ <svg:text style="font-family:Helvetica; font-size:7; fill:black" text-
+ anchor="end" y="-71" x="-43">Aug (20%)
+ </svg:text>
+ </svg:g>
+ <svg:g transform="translate(150,150) ">
+ <svg:path style="fill:red; opacity:0.5; stroke:black; stroke-width:0.5;" d="M
+ 0,0 L 6,-75 A 75,75 0 0,1 15,-73 z"/>
+ <svg:text style="font-family:Helvetica; font-size:7; fill:black" text-
+ anchor="start" y="-82" x="12">Sep (2%)
+ </svg:text>
+ </svg:g>
+ <svg:g transform="translate(150,150) ">
+ <svg:path style="fill:silver; opacity:0.5; stroke:black; stroke-width:0.5;"
+ d="M 0,0 L 15,-73 A 75,75 0 0,1 61,-44 z"/>
+ <svg:text style="font-family:Helvetica; font-size:7; fill:black" text-
+ anchor="start" y="-70" x="45">Oct (12%)
+ </svg:text>
+ </svg:g>
+ <svg:g transform="translate(150,150) ">
+ <svg:path style="fill:beige; opacity:0.5; stroke:black; stroke-width:0.5;" d="M
+ 0,0 L 61,-44 A 75,75 0 0,1 73,-18 z"/>
+ <svg:text style="font-family:Helvetica; font-size:7; fill:black" text-
+ anchor="start" y="-35" x="75">Nov (6%)
+ </svg:text>
+ </svg:g>
+ <svg:g transform="translate(150,150) ">
+ <svg:path style="fill:pink; opacity:0.5; stroke:black; stroke-width:0.5;" d="M
+ 0,0 L 73,-18 A 75,75 0 0,1 75,0 z"/>
+ <svg:text style="font-family:Helvetica; font-size:7; fill:black" text-
+ anchor="start" y="-10" x="82">Dec (4%)
+ </svg:text>
+ </svg:g>
+ </svg:svg>
+ </fo:instream-foreign-object>
+ </fo:block>
+ <fo:block id="terminator"/>
+ </fo:flow>
+ </fo:page-sequence>
+ </fo:root>
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org