1 <?xml version=
"1.0" standalone=
"no"?>
2 <!DOCTYPE svg PUBLIC
"-//W3C//DTD SVG 1.0//EN"
3 "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
7 Copyright 2001 The Apache Software Foundation
9 Licensed under the Apache License, Version 2.0 (the "License");
10 you may not use this file except in compliance with the License.
11 You may obtain a copy of the License at
13 http://www.apache.org/licenses/LICENSE-2.0
15 Unless required by applicable law or agreed to in writing, software
16 distributed under the License is distributed on an "AS IS" BASIS,
17 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 See the License for the specific language governing permissions and
19 limitations under the License.
22 <!-- ========================================================================= -->
23 <!-- Tests small font sizes (<1) with various text features. -->
24 <!-- This is basically a copy of the textFeatures test file with a small -->
27 <!-- @author bella.robinson@cmis.csiro.au -->
28 <!-- @version $Id: smallFonts.svg,v 1.4 2004/08/18 07:12:21 vhardy Exp $ -->
29 <!-- ========================================================================= -->
30 <?xml-stylesheet type=
"text/css" href=
"../resources/test.css" ?>
31 <svg xmlns=
"http://www.w3.org/2000/svg" xmlns:
xlink=
"http://www.w3.org/1999/xlink" width=
"450" height=
"500" viewBox=
"0 0 9 10">
32 <!-- ============================================================= -->
34 <!-- ============================================================= -->
37 <filter id=
"blur" filterUnits=
"userSpaceOnUse" x=
"0" y=
"-1.6" width=
"4" height=
"2" filterRes=
"200">
38 <feGaussianBlur stdDeviation=
"0.04 0.04" x=
"0" y=
"-1.6" width=
"4" height=
"2"/>
41 <path id=
"Path1" style=
"fill:none; stroke:green; stroke-width:5" transform=
"scale(0.003,0.003)"
42 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"/>
46 <g id=
"testContent" stroke-width=
"0.01">
48 <text x=
"50%" y=
"10%" font-size=
"0.3" text-anchor=
"middle" >
49 Small font size test (
viewBox=
"0 0 9 10")
</text>
51 <g font-family=
"dialog" font-size=
"0.3"
52 text-anchor=
"start" fill=
"MidnightBlue">
53 <text x=
"10%" y=
"20%">
55 <tspan font-size=
"0.6">size,
</tspan>
56 <tspan font-size=
"0.4" font-family=
"Serif">typeface,
</tspan>
57 <tspan fill=
"green">color,
</tspan>
59 <tspan fill=
"none" font-style=
"oblique" stroke=
"red" stroke-width=
"0.02">style
</tspan>
62 <text fill=
"MidnightBlue" x=
"10%" y=
"24%">
63 within a single text element.
66 <text x=
"10%" y=
"32%">Styling features include
67 <tspan font-weight=
"bold">weight,
</tspan>
68 <tspan font-style=
"oblique">posture,
</tspan> and
69 <tspan font-family=
"serif">typeface.
</tspan>
72 <rect x=
"10%" y=
"35%" width=
"45%" height=
"10%" fill=
"DodgerBlue"/>
73 <text x=
"10%" y=
"40%">
74 Graphics attributes such as
75 <tspan fill=
"red" opacity=
"0.3">opacity
</tspan> can be applied.
78 <text x=
"10%" y=
"50%">"text decoration" can include
79 <tspan text-decoration=
"underline">underline,
</tspan>
80 <tspan text-decoration=
"overline">overline,
</tspan> and
83 <text x=
"10%" y=
"54%">
84 <tspan text-decoration=
"line-through">strikethrough.
</tspan>
85 <tspan dx=
"0.1" baseline-shift=
"super" font-size=
"0.2">Super
</tspan> and
86 <tspan baseline-shift=
"sub" font-size=
"0.2">sub
</tspan> scripts are available.
89 <text x=
"10%" y=
"62%" stroke-linecap=
"round" stroke-linejoin=
"round">
91 <tspan stroke=
"red" fill=
"none" stroke-width=
"0.01">outline
93 <tspan stroke=
"red" stroke-width=
"0.01" fill=
"blue" >fill colors
95 <tspan stroke=
"red" stroke-width=
"0.02" fill=
"blue" >thicknesses
99 <text x=
"10%" y=
"66%">used, and the outline stroke can be
100 <tspan stroke=
"black" fill=
"none" stroke-width=
"0.01"
101 stroke-linecap=
"round" stroke-linejoin=
"round">rounded
</tspan>
103 <tspan stroke=
"black" fill=
"none" stroke-width=
"0.01"
104 stroke-linecap=
"square" stroke-linejoin=
"miter">mitered.
</tspan>
107 <text x=
"10%" y=
"75%">Text elements also can be filtered, transformed
108 <tspan x=
"10%" y=
"79%">and placed on a path.
</tspan></text>
110 <g font-size=
"0.8" transform=
"translate(1.5, 9)">
111 <text x=
"0" y=
"0" filter=
"url(#blur)" fill=
"black" opacity=
"0.7"
112 transform=
"skewX(40) translate(-0.12,-0.12)">
115 <text x=
"0" y=
"0" stroke=
"black" stroke-width=
"0.01" fill=
"white">
120 <g transform=
"translate(5,8)">
121 <use xlink:
href=
"#Path1"/>
122 <text font-size=
"0.3" style=
"text-anchor:start">
123 <textPath xlink:
href=
"#Path1" startOffset=
"0%">Small text
<tspan fill=
"red" dy=
"-0.1">on
</tspan><tspan dy=
"0.1"> a Path
</tspan></textPath>
130 <!-- ============================================================= -->
131 <!-- Batik sample mark -->
132 <!-- ============================================================= -->
133 <use transform=
"scale(0.02, 0.02)" xlink:
href=
"../resources/batikLogo.svg#Batik_Tag_Box" />