diff options
author | Glenn Adams <gadams@apache.org> | 2016-03-06 06:14:41 +0000 |
---|---|---|
committer | Glenn Adams <gadams@apache.org> | 2016-03-06 06:14:41 +0000 |
commit | 57949ba0cfffa2dd5933a103c6ad867de9f1e7a0 (patch) | |
tree | cd1d8100a9135449635251820f39f272151005ac /test/resources/fop/svg | |
parent | c8cde713f54ca731f4a7f3bfaef8af9e8a1b9262 (diff) | |
download | xmlgraphics-fop-57949ba0cfffa2dd5933a103c6ad867de9f1e7a0.tar.gz xmlgraphics-fop-57949ba0cfffa2dd5933a103c6ad867de9f1e7a0.zip |
Configure maven build.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/maven@1733788 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/resources/fop/svg')
-rw-r--r-- | test/resources/fop/svg/blocks.ent | 21 | ||||
-rw-r--r-- | test/resources/fop/svg/embed.fo | 94 | ||||
-rw-r--r-- | test/resources/fop/svg/images.fo | 40 | ||||
-rw-r--r-- | test/resources/fop/svg/images.svg | 43 | ||||
-rw-r--r-- | test/resources/fop/svg/link.fo | 34 | ||||
-rw-r--r-- | test/resources/fop/svg/link.svg | 32 | ||||
-rw-r--r-- | test/resources/fop/svg/logo.jpg | bin | 2339 -> 0 bytes | |||
-rw-r--r-- | test/resources/fop/svg/paints.svg | 85 | ||||
-rw-r--r-- | test/resources/fop/svg/text.svg | 133 | ||||
-rw-r--r-- | test/resources/fop/svg/transparency.svg | 50 |
10 files changed, 0 insertions, 532 deletions
diff --git a/test/resources/fop/svg/blocks.ent b/test/resources/fop/svg/blocks.ent deleted file mode 100644 index f8b70b4be..000000000 --- a/test/resources/fop/svg/blocks.ent +++ /dev/null @@ -1,21 +0,0 @@ -<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"> - -<rect x="0" y="0" width="25" height="25" style="fill:red"/> -<rect x="25" y="0" width="25" height="25" style="fill:black"/> -<rect x="50" y="0" width="25" height="25" style="fill:orange"/> -<rect x="75" y="0" width="25" height="25" style="fill:black"/> -<rect x="0" y="25" width="25" height="25" style="fill:black"/> -<rect x="25" y="25" width="25" height="25" style="fill:green"/> -<rect x="50" y="25" width="25" height="25" style="fill:black"/> -<rect x="75" y="25" width="25" height="25" style="fill:blue"/> -<rect x="0" y="50" width="25" height="25" style="fill:yellow"/> -<rect x="25" y="50" width="25" height="25" style="fill:black"/> -<rect x="50" y="50" width="25" height="25" style="fill:purple"/> -<rect x="75" y="50" width="25" height="25" style="fill:black"/> -<rect x="0" y="75" width="25" height="25" style="fill:black"/> -<rect x="25" y="75" width="25" height="25" style="fill:violet"/> -<rect x="50" y="75" width="25" height="25" style="fill:black"/> -<rect x="75" y="75" width="25" height="25" style="fill:cyan"/> - -</svg> - diff --git a/test/resources/fop/svg/embed.fo b/test/resources/fop/svg/embed.fo deleted file mode 100644 index 2993552da..000000000 --- a/test/resources/fop/svg/embed.fo +++ /dev/null @@ -1,94 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!DOCTYPE root [ -<!ENTITY svgimage SYSTEM "blocks.ent"> -]> - -<fo:root font-family="Times Roman" font-size="12pt" xmlns:fo="http://www.w3.org/1999/XSL/Format"> - -<fo:layout-master-set> - <fo:simple-page-master - margin-right="1.5cm" - margin-left="1.5cm" - margin-bottom="2cm" - margin-top="1cm" - page-width="21cm" - page-height="29.7cm" - master-name="left"> - <fo:region-before extent="1cm"/> - <fo:region-body margin-top="1cm"/> - <fo:region-after extent="1.5cm"/> - </fo:simple-page-master> - -</fo:layout-master-set> - -<fo:page-sequence id="N2528" master-reference="left"> - -<fo:static-content flow-name="xsl-region-after"> - <fo:block text-align-last="center" font-size="10pt"> - <fo:page-number/> - </fo:block> -</fo:static-content> - -<fo:flow flow-name="xsl-region-body"> -<fo:block font-size="18pt" font-weight="bold" text-align="center">Embedding SVG in Viewport</fo:block> -<fo:block> - <fo:block font-size="16pt" font-weight="bold" space-before.minimum="1em" space-before.optimum="1.5em" space-before.maximum="2em">Align in Larger Viewport</fo:block> - - <fo:block> -Default align: -(<fo:instream-foreign-object width="100pt" height="100pt" content-width="50pt" content-height="50pt">&svgimage;</fo:instream-foreign-object>), start -(<fo:instream-foreign-object width="100pt" height="100pt" content-width="50pt" content-height="50pt" text-align="start">&svgimage;</fo:instream-foreign-object>), center -(<fo:instream-foreign-object width="100pt" height="100pt" content-width="50pt" content-height="50pt" text-align="center">&svgimage;</fo:instream-foreign-object>), end -(<fo:instream-foreign-object width="100pt" height="100pt" content-width="50pt" content-height="50pt" text-align="end">&svgimage;</fo:instream-foreign-object>), before -(<fo:instream-foreign-object width="100pt" height="100pt" content-width="50pt" content-height="50pt" display-align="before">&svgimage;</fo:instream-foreign-object>), center -(<fo:instream-foreign-object width="100pt" height="100pt" content-width="50pt" content-height="50pt" display-align="center">&svgimage;</fo:instream-foreign-object>), after -(<fo:instream-foreign-object width="100pt" height="100pt" content-width="50pt" content-height="50pt" display-align="after">&svgimage;</fo:instream-foreign-object>), start-before -(<fo:instream-foreign-object width="100pt" height="100pt" content-width="50pt" content-height="50pt" text-align="start" display-align="before">&svgimage;</fo:instream-foreign-object>), start-center -(<fo:instream-foreign-object width="100pt" height="100pt" content-width="50pt" content-height="50pt" text-align="start" display-align="center">&svgimage;</fo:instream-foreign-object>), start-after -(<fo:instream-foreign-object width="100pt" height="100pt" content-width="50pt" content-height="50pt" text-align="start" display-align="after">&svgimage;</fo:instream-foreign-object>), center-before -(<fo:instream-foreign-object width="100pt" height="100pt" content-width="50pt" content-height="50pt" text-align="center" display-align="before">&svgimage;</fo:instream-foreign-object>), center-center -(<fo:instream-foreign-object width="100pt" height="100pt" content-width="50pt" content-height="50pt" text-align="center" display-align="center">&svgimage;</fo:instream-foreign-object>), center-after -(<fo:instream-foreign-object width="100pt" height="100pt" content-width="50pt" content-height="50pt" text-align="center" display-align="after">&svgimage;</fo:instream-foreign-object>), end-before -(<fo:instream-foreign-object width="100pt" height="100pt" content-width="50pt" content-height="50pt" text-align="end" display-align="before">&svgimage;</fo:instream-foreign-object>), end-center -(<fo:instream-foreign-object width="100pt" height="100pt" content-width="50pt" content-height="50pt" text-align="end" display-align="center">&svgimage;</fo:instream-foreign-object>), end-after -(<fo:instream-foreign-object width="100pt" height="100pt" content-width="50pt" content-height="50pt" text-align="end" display-align="after">&svgimage;</fo:instream-foreign-object>). - </fo:block> - - <fo:block font-size="16pt" font-weight="bold" space-before.minimum="1em" space-before.optimum="1.5em" space-before.maximum="2em">Align in Smaller Viewport</fo:block> - <fo:block> -Default align: -(<fo:instream-foreign-object width="50pt" height="50pt" overflow="hidden">&svgimage;</fo:instream-foreign-object>), start -(<fo:instream-foreign-object width="50pt" height="50pt" overflow="hidden" text-align="start">&svgimage;</fo:instream-foreign-object>), center -(<fo:instream-foreign-object width="50pt" height="50pt" overflow="hidden" text-align="center">&svgimage;</fo:instream-foreign-object>), end -(<fo:instream-foreign-object width="50pt" height="50pt" overflow="hidden" text-align="end">&svgimage;</fo:instream-foreign-object>), before -(<fo:instream-foreign-object width="50pt" height="50pt" overflow="hidden" display-align="before">&svgimage;</fo:instream-foreign-object>), center -(<fo:instream-foreign-object width="50pt" height="50pt" overflow="hidden" display-align="center">&svgimage;</fo:instream-foreign-object>), after -(<fo:instream-foreign-object width="50pt" height="50pt" overflow="hidden" display-align="after">&svgimage;</fo:instream-foreign-object>), start-before -(<fo:instream-foreign-object width="50pt" height="50pt" overflow="hidden" text-align="start" display-align="before">&svgimage;</fo:instream-foreign-object>), start-center -(<fo:instream-foreign-object width="50pt" height="50pt" overflow="hidden" text-align="start" display-align="center">&svgimage;</fo:instream-foreign-object>), start-after -(<fo:instream-foreign-object width="50pt" height="50pt" overflow="hidden" text-align="start" display-align="after">&svgimage;</fo:instream-foreign-object>), center-before -(<fo:instream-foreign-object width="50pt" height="50pt" overflow="hidden" text-align="center" display-align="before">&svgimage;</fo:instream-foreign-object>), center-center -(<fo:instream-foreign-object width="50pt" height="50pt" overflow="hidden" text-align="center" display-align="center">&svgimage;</fo:instream-foreign-object>), center-after -(<fo:instream-foreign-object width="50pt" height="50pt" overflow="hidden" text-align="center" display-align="after">&svgimage;</fo:instream-foreign-object>), end-before -(<fo:instream-foreign-object width="50pt" height="50pt" overflow="hidden" text-align="end" display-align="before">&svgimage;</fo:instream-foreign-object>), end-center -(<fo:instream-foreign-object width="50pt" height="50pt" overflow="hidden" text-align="end" display-align="center">&svgimage;</fo:instream-foreign-object>), end-after -(<fo:instream-foreign-object width="50pt" height="50pt" overflow="hidden" text-align="end" display-align="after">&svgimage;</fo:instream-foreign-object>). - </fo:block> - - <fo:block font-size="16pt" font-weight="bold" space-before.minimum="1em" space-before.optimum="1.5em" space-before.maximum="2em">Scaling</fo:block> - <fo:block> -Non-uniform -(<fo:instream-foreign-object content-width="100pt" content-height="50pt" scaling="non-uniform" overflow="hidden" text-align="start">&svgimage;</fo:instream-foreign-object>), non-uniform -(<fo:instream-foreign-object content-width="50pt" content-height="100pt" scaling="non-uniform" overflow="hidden" text-align="start">&svgimage;</fo:instream-foreign-object>), uniform -(<fo:instream-foreign-object content-width="100pt" content-height="75pt" scaling="uniform" overflow="hidden" text-align="start">&svgimage;</fo:instream-foreign-object>), uniform -(<fo:instream-foreign-object content-width="75pt" content-height="100pt" scaling="uniform" overflow="hidden" text-align="start">&svgimage;</fo:instream-foreign-object>). - </fo:block> - - <fo:block font-size="16pt" font-weight="bold" space-before.minimum="1em" space-before.optimum="1.5em" space-before.maximum="2em"/> - This section is only required to show that the layout still works. -</fo:block> -</fo:flow> -</fo:page-sequence> - -</fo:root> - diff --git a/test/resources/fop/svg/images.fo b/test/resources/fop/svg/images.fo deleted file mode 100644 index 5b739dca8..000000000 --- a/test/resources/fop/svg/images.fo +++ /dev/null @@ -1,40 +0,0 @@ -<?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="images.svg"/> - </fo:block> - - <fo:block> -Image in FO Document. - </fo:block> - <fo:block> -<fo:external-graphic src="logo.jpg"/> - </fo:block> - </fo:flow> - </fo:page-sequence> -</fo:root> - diff --git a/test/resources/fop/svg/images.svg b/test/resources/fop/svg/images.svg deleted file mode 100644 index cad4de988..000000000 --- a/test/resources/fop/svg/images.svg +++ /dev/null @@ -1,43 +0,0 @@ -<?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="20" y="20" style="font-size:18">Images in SVG</text> - -<text x="20" y="35" style="font-size:12">Jpeg</text> -<image x="30" y="55" width="100" height="80" xlink:href="logo.jpg"/> -</g> - -<text x="20" y="160" style="font-size:12">Effect or Bitmap</text> -<g> -<defs> - <filter id="Turb1" filterUnits="objectBoundingBox" - x="0%" y="0%" width="100%" height="100%"> - <feTurbulence type="fractalNoise" baseFrequency="0.1" numOctaves="1"/> - </filter> - <filter id="Turb2" filterUnits="objectBoundingBox" - x="0%" y="0%" width="100%" height="100%"> - <feTurbulence type="fractalNoise" baseFrequency="0.15" numOctaves="1"/> - </filter> -</defs> - <rect x="25" y="165" width="100" height="75" style="filter:url(#Turb1)" /> - - -<text x="20" y="255" style="font-size:12">Transparency</text> - <rect x="20" y="260" width="40" height="35" style="fill:blue" /> -<text x="60" y="305" style="font-size:20;font-weight:bold">SEE</text> - <rect x="25" y="265" width="100" height="75" style="filter:url(#Turb2)" /> - - -<text x="200" y="35" style="font-size:12">Scaled</text> -<g transform="scale(4)"> - <rect x="55" y="15" width="25" height="18.75" style="filter:url(#Turb1)" /> -</g> - -</g> - -</svg> - diff --git a/test/resources/fop/svg/link.fo b/test/resources/fop/svg/link.fo deleted file mode 100644 index a466ef245..000000000 --- a/test/resources/fop/svg/link.fo +++ /dev/null @@ -1,34 +0,0 @@ -<?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> - diff --git a/test/resources/fop/svg/link.svg b/test/resources/fop/svg/link.svg deleted file mode 100644 index a4ad520a3..000000000 --- a/test/resources/fop/svg/link.svg +++ /dev/null @@ -1,32 +0,0 @@ -<?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="images.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> - diff --git a/test/resources/fop/svg/logo.jpg b/test/resources/fop/svg/logo.jpg Binary files differdeleted file mode 100644 index 8fe6ca9ff..000000000 --- a/test/resources/fop/svg/logo.jpg +++ /dev/null diff --git a/test/resources/fop/svg/paints.svg b/test/resources/fop/svg/paints.svg deleted file mode 100644 index 709f31881..000000000 --- a/test/resources/fop/svg/paints.svg +++ /dev/null @@ -1,85 +0,0 @@ -<?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="20" y="20" style="font-size:18">Paints - Patterns & Gradients</text> - -<text x="10" y="35" style="font-size:12">Gradient</text> - -<defs> - <linearGradient id="grad1" x1="0" y1="0" x2="1" y2="0"> - <stop offset="0" style="stop-color:crimson" /> - <stop offset="1" style="stop-color:gold" /> - </linearGradient> - <linearGradient id="grad2" x1="0" y1="0" x2="0" y2="1"> - <stop offset="0" style="stop-color:crimson" /> - <stop offset="0.4" style="stop-color:purple" /> - <stop offset="1" style="stop-color:gold" /> - </linearGradient> - <linearGradient id="grad3" x1="0" y1="0" x2="1" y2="1"> - <stop offset="0" style="stop-color:crimson" /> - <stop offset="0.7" style="stop-color:blue" /> - <stop offset="1" style="stop-color:gold" /> - </linearGradient> - <radialGradient id="rad" - fx="20%" fy="30%" rx="10%" ry="30%" r="40%"> - <stop offset="0" stop-color="gold" /> - <stop offset="1" stop-color="green" stop-opacity="0.4"/> - </radialGradient> -</defs> - <rect x="15" y="40" width="100" height="75" style="fill:url(#grad1)" /> - <rect x="15" y="117.5" width="100" height="75" style="fill:url(#grad2)" /> - <rect x="15" y="195" width="100" height="75" style="fill:url(#grad3)" /> - <rect x="15" y="275" width="100" height="75" style="fill:url(#rad)" /> - -<text x="120" y="35" style="font-size:12">Pattern</text> - -<defs> - <pattern id="pat1" x="0" y="0" width=".75" height="50%"> - <circle cx="10" cy="10" r="10" style="fill:red" /> - <rect x="10" y="10" width="15" height="15" style="fill:green"/> - </pattern> - <pattern id="pat2" x="0" y="0" width=".2" height="50%"> - <circle cx="10" cy="10" r="10" style="fill:red" /> - <rect x="10" y="10" width="15" height="15" style="fill:green"/> - </pattern> - <pattern id="pat3" x="0" y="0" width=".3" height="50%" patternTransform="matrix(1, 0.3, -0.5, 1, 5, 10)"> - <circle cx="10" cy="10" r="10" style="fill:red" /> - <rect x="10" y="10" width="15" height="15" style="fill:green"/> - <text x="5" y="10" style="font-size:10">Patt</text> - </pattern> - <pattern id="see" x="0" y="0" width="25" height="25" patternUnits="userSpaceOnUse"> - <circle cx="10" cy="10" r="10" style="fill:red" /> - <rect x="10" y="10" width="15" height="15" style="fill:green;fill-opacity:0.5"/> - </pattern> -</defs> - <rect x="125" y="40" width="100" height="75" style="fill:url(#pat1)" /> - <rect x="125" y="117.5" width="100" height="75" style="fill:url(#pat2)" /> - <rect x="125" y="195" width="100" height="75" style="fill:url(#pat3)" /> - <rect x="125" y="275" width="100" height="75" style="fill:url(#see)" /> - -<defs> - <pattern id="patgrad1" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"> - <circle cx="10" cy="10" r="10" style="fill:url(#grad1)" /> - </pattern> - <pattern id="patpat2" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"> - <circle cx="10" cy="10" r="10" style="fill:url(#pat2)" /> - </pattern> - <pattern id="patimage3" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"> - <image x="0" y="0" width="10" height="10" xlink:href="logo.jpg"/> - </pattern> -</defs> - -<text x="230" y="35" style="font-size:12">Pattern in Pattern</text> - - <rect x="235" y="40" width="100" height="75" style="fill:url(#patgrad1)" /> - <rect x="235" y="117.5" width="100" height="75" style="fill:url(#patpat2)" /> - <rect x="235" y="195" width="100" height="75" style="fill:url(#patimage3)" /> - -</g> - -</svg> - diff --git a/test/resources/fop/svg/text.svg b/test/resources/fop/svg/text.svg deleted file mode 100644 index 971c90126..000000000 --- a/test/resources/fop/svg/text.svg +++ /dev/null @@ -1,133 +0,0 @@ -<?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="190"> -<g transform="scale(1.5, -1.5) translate(0, -130)"> -<g style="stroke:black;stroke-width:8"> -<line x1="5" y1="20" x2="125" y2="20"/> -<line x1="5" y1="40" x2="40" y2="40"/> -<line x1="5" y1="60" x2="100" y2="60"/> -<line x1="5" y1="85" x2="40" y2="85"/> -<line x1="5" y1="110" x2="40" y2="110"/> -</g> -</g> - </glyph> - - <glyph unicode="O" glyph-name="o" horiz-adv-x="185"> -<g transform="scale(1.5, -1.5) translate(0, -130)"> -<g style="stroke:black;stroke-width:8"> -<line x1="50" y1="30" x2="80" y2="30"/> -<line x1="30" y1="45" x2="100" y2="45"/> -<line x1="20" y1="60" x2="110" y2="60"/> -<line x1="30" y1="80" x2="100" y2="80"/> -<line x1="50" y1="100" x2="80" y2="100"/> -</g> -</g> - </glyph> - - <glyph unicode="P" glyph-name="p" horiz-adv-x="210"> -<g transform="scale(1.5, -1.5) translate(0, -130)"> -<g style="stroke:black;stroke-width:8"> -<line x1="5" y1="20" x2="110" y2="20"/> -<line x1="5" y1="40" x2="40" y2="40"/> -<line x1="90" y1="40" x2="120" y2="40"/> -<line x1="5" y1="60" x2="105" y2="60"/> -<line x1="5" y1="85" x2="40" y2="85"/> -<line x1="5" y1="110" x2="40" y2="110"/> -</g> -</g> - </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 in FOPfont</text> -</g> - - <text x="130" y="80" writing-mode="tb" font-size="12">vertical</text> - <text x="140" y="80" writing-mode="tb" glyph-orientation-vertical="0deg" font-size="12">vertical</text> - <text x="150" y="80" glyph-orientation-horizontal="90deg" font-size="12">orientated text</text> - - <text x="150" y="95" font-stretch="narrower" font-size="12">stretched font</text> - - <text x="150" y="110" letter-spacing="5" font-size="12">spaced letters</text> - - <text x="150" y="125" word-spacing="3pt" font-size="12">spaced words</text> - - - - <!-- empty element --> - <text/> -</g> - -</svg> - diff --git a/test/resources/fop/svg/transparency.svg b/test/resources/fop/svg/transparency.svg deleted file mode 100644 index e0b958516..000000000 --- a/test/resources/fop/svg/transparency.svg +++ /dev/null @@ -1,50 +0,0 @@ -<?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="20" y="20" style="font-size:18">Transparency in SVG (to PDF)</text> - -<text x="20" y="35" style="font-size:12">Shapes</text> -<rect x="30" y="55" width="100" height="80" style="fill:green;stroke:blue;stroke-width:3;fill-opacity:0.5;stroke-opacity:0.6"/> -<rect x="80" y="95" width="100" height="80" style="fill:red;stroke:yellow;stroke-width:3;fill-opacity:0.5"/> - - -</g> - -<g> -<defs> - <filter id="Turb" filterUnits="objectBoundingBox" - x="0%" y="0%" width="100%" height="100%"> - <feTurbulence type="fractalNoise" baseFrequency="0.1" numOctaves="1"/> - </filter> -</defs> - -<text x="20" y="205" style="font-size:12">Image</text> - <rect x="20" y="210" width="40" height="35" style="fill:blue" /> -<text x="60" y="255" style="font-size:20;font-weight:bold">SEE</text> - <rect x="25" y="215" width="100" height="75" style="filter:url(#Turb)" /> - - -</g> - -<text x="220" y="35" style="font-size:12">Text</text> -<rect x="240" y="55" width="130" height="50" style="fill:blue"/> -<text x="280" y="75" style="font-size:20;font-weight:bold;fill-opacity:0.6;fill:green">SEE</text> -<text x="250" y="95" style="font-size:20;font-weight:bold;fill-opacity:0.4;fill:orange;stroke:red">THROUGH</text> - -<text x="220" y="205" style="font-size:12">Uniform Image Transparency</text> -<defs> - <filter id="matrixGreen" filterUnits="objectBoundingBox" - x="0%" y="0%" width="100%" height="100%"> - <feTurbulence type="turbulence" baseFrequency="0.05" numOctaves="2" stitchTiles="noStitch" seed="0" result="turb"/> - <feColorMatrix type="matrix" values="0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 1" /> - </filter> -</defs> -<rect x="240" y="225" width="100" height="75" style="opacity:0.4;filter:url(#matrixGreen)" /> - - -</svg> - |