OLD | NEW |
| (Empty) |
1 <?xml version="1.0" encoding="UTF-8"?> | |
2 <!--======================================================================--> | |
3 <!--= Copyright 2000 World Wide Web Consortium, (Massachusetts =--> | |
4 <!--= Institute of Technology, Institut National de Recherche en =--> | |
5 <!--= Informatique et en Automatique, Keio University). All Rights =--> | |
6 <!--= Reserved. See http://www.w3.org/Consortium/Legal/. =--> | |
7 <!--======================================================================--> | |
8 <!--======================================================================--> | |
9 <!--= Author : Michael Ingrassia 20-Oct-2003 =--><!D
OCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Tiny//EN" "http://www.w3.org/Graphics/SVG
/1.1/DTD/svg11-tiny.dtd"> | |
10 | |
11 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlin
k" version="1.1" baseProfile="tiny" id="svg-root" width="100%" height="100%" vie
wBox="0 0 480 360"> | |
12 <SVGTestCase | |
13 xmlns:testcase="http://www.w3.org/2000/02/svg/testsuite/description/" | |
14 xmlns="http://www.w3.org/2000/02/svg/testsuite/description/" | |
15 reviewer="" reviewed="" owner="MI" desc="Testing font-family | |
16 attribute" status="created" version="$Revision: 1.5 $" testname="$RCSfil
e: text-fonts-03-t.svg,v $"> | |
17 <!--nav data here--> | |
18 <OperatorScript> | |
19 <Paragraph> | |
20 Testing font-family attribute. | |
21 Two SVG fonts are defined. Various text elements are then | |
22 used with varying values for the font-family attribute. | |
23 The first two text elements should display in their respective f
onts, | |
24 the last two should be displayed using the system font since the | |
25 value specified for font-family is either invalid or not specifi
ed. | |
26 </Paragraph> | |
27 <Paragraph> | |
28 The rendered picture should match the reference image exactly, e
xcept for possible | |
29 variations in the labelling text (per CSS2 rules). | |
30 </Paragraph> | |
31 </OperatorScript> | |
32 </SVGTestCase> | |
33 <title id="test-title">text-fonts-03-t</title> | |
34 <desc id="test-desc">Testing font-family attribute</desc> | |
35 <!--======================================================================--
> | |
36 <!--= Content of Test Case follows... =--
> | |
37 <!--======================================================================--
> | |
38 | |
39 <g id="test-body-content"> | |
40 <defs> | |
41 <font> | |
42 <font-face font-family="Haettenschweiler"/> | |
43 <glyph unicode="A" horiz-adv-x="440" d="M440 0l-160 0 -20 180 -8
0 0 -20 -180 -160 0 120 700 200 0 120 -700zm-200 280l-20 220 -20 -220 40 0z"/> | |
44 <glyph unicode="B" horiz-adv-x="378" d="M20 0l0 700 180 0c40,0 8
0,0 100,-20 40,-20 60,-60 60,-100l0 -100c0,-60 -40,-80 -100,-100 80,-20 100,-60
100,-100l0 -140c0,-40 -20,-80 -40,-100 -40,-20 -60,-40 -100,-40l-200 0zm200 460l
0 120c0,20 -20,20 -40,20l0 -180c20,0 40,0 40,40zm0 -340l0 180c0,20 -20,40 -40,40
l0 -260c20,0 40,20 40,40z"/> | |
45 <glyph unicode="C" horiz-adv-x="370" d="M360 460l-140 0 0 140c0,
0 -20,20 -20,20 -20,0 -20,-20 -20,-20l0 -500c0,0 0,0 20,0 0,0 20,0 20,0l0 180 14
0 0 0 -180c0,-20 -20,-60 -60,-80 -20,-20 -60,-20 -100,-20 -120,0 -180,40 -180,12
0l0 460c0,80 60,120 180,120 100,0 160,-40 160,-120l0 -120z"/> | |
46 </font> | |
47 <font> | |
48 <font-face font-family="Charlesworth"/> | |
49 <glyph unicode="A" horiz-adv-x="712" d="M-60 0l0 20c0,0 20,0 40,
0 40,0 40,0 60,20 0,0 20,20 40,80 20,60 40,120 80,200 20,80 40,160 80,220 20,60
40,120 40,120 0,20 -20,20 -80,20l0 20c20,0 80,0 140,0 100,0 140,0 160,0l0 -20c-4
0,0 -80,0 -80,-20 20,-60 60,-140 80,-220 40,-100 80,-180 100,-260 40,-80 60,-140
60,-140 0,0 20,-20 40,-20 40,0 60,0 60,0l0 -20c0,0 -60,0 -180,0 -20,0 -40,0 -80
,0 -40,0 -60,0 -80,0l0 20c20,0 60,0 80,0 20,0 20,20 20,20 0,0 -20,60 -40,140 -40
,80 -40,120 -60,140 -60,0 -140,0 -220,0 -20,-20 -20,-40 -20,-80 -20,-40 -40,-80
-40,-120 -20,-60 -20,-80 -20,-80 20,-20 60,-20 80,-20l20 -20c-40,0 -80,0 -140,0
-80,0 -120,0 -140,0zm260 360c40,0 80,0 120,0 60,0 100,0 100,0 0,0 0,0 -20,40 0,2
0 -20,60 -40,100 0,40 -20,80 -20,100 -20,20 -20,40 -20,60l0 0c-20,-40 -40,-80 -6
0,-160 -40,-80 -60,-120 -60,-140z"/> | |
50 <glyph unicode="B" horiz-adv-x="684" d="M160 660c-20,20 -40,20 -
100,20l-20 20c20,0 60,0 120,0 80,0 140,0 180,0 60,0 100,0 160,-20 40,-20 60,-60
60,-100 0,-40 -20,-100 -60,-120 -20,-40 -60,-60 -100,-80l0 0c40,0 60,-20 100,-40
20,0 40,-20 60,-40 20,-20 20,-40 40,-60 0,-20 0,-40 0,-60 0,-40 0,-60 -20,-100
-20,-20 -40,-40 -80,-60 -20,-20 -60,-20 -100,-20 -20,0 -40,0 -80,0 -60,0 -100,0
-160,0 -20,0 -60,0 -120,0l20 20c0,0 20,0 40,0 40,0 40,0 60,20 0,0 0,20 0,80 0,80
0,160 0,240 0,80 0,140 0,200 0,60 0,100 0,100zm120 -620c20,0 60,-20 80,-20 20,0
60,0 80,20 20,0 20,20 40,40 20,20 20,40 20,60 0,40 -20,80 -40,100 -20,40 -40,60
-80,80 -40,20 -60,20 -100,20 0,-20 0,-40 0,-80 0,-40 0,-80 0,-120 0,-40 0,-80 0
,-100zm0 340c40,0 80,0 100,20 20,20 40,40 60,60 0,20 0,60 0,80 0,20 0,40 0,60 -2
0,20 -40,40 -60,60 -20,20 -40,20 -60,20 -20,0 -40,0 -40,0 0,0 0,-20 0,-40 0,-20
0,-60 0,-140 0,-60 0,-100 0,-120z"/> | |
51 <glyph unicode="C" horiz-adv-x="808" d="M740 480l-20 0c0,20 0,60
0,80 -20,20 -20,40 -40,60 -40,20 -60,20 -100,40 -40,20 -60,20 -100,20 -20,0 -20
,0 -40,0 -40,0 -100,-20 -120,-40 -40,-20 -60,-40 -80,-80 -20,-20 -40,-40 -60,-80
0,-20 0,-60 0,-80 0,-60 0,-120 20,-160 20,-40 60,-80 100,-120 20,-20 80,-40 120
,-60 40,-20 100,-40 140,-40 80,20 160,40 220,60l0 -40c-40,-20 -80,-40 -140,-40 -
40,-20 -100,-20 -140,-20 -80,0 -140,20 -200,40 -80,20 -120,60 -180,100 -40,60 -6
0,120 -60,200 0,0 0,20 0,20 0,60 0,100 20,140 20,40 60,80 100,120 20,40 80,60 14
0,80 60,20 120,40 200,40 60,0 120,-20 200,-20 0,0 0,0 0,20 20,40 20,40 20,60l20
0c0,-20 0,-60 0,-140 -20,-100 -20,-140 -20,-160z"/> | |
52 </font> | |
53 </defs> | |
54 | |
55 <text x="15" y="60" font-size="18">font-family = "Haettenschweiler"</tex
t> | |
56 <text x="340" y="60" font-family="Haettenschweiler" font-size="35">ABC</
text> | |
57 | |
58 <text x="15" y="110" font-size="18">font-family = "Charlesworth"</text> | |
59 <text x="340" y="110" font-family="Charlesworth" font-size="35">ABC</tex
t> | |
60 | |
61 <text x="15" y="160" font-size="18">font-family = "Invalid Name"</text> | |
62 <text x="340" y="160" font-family="InvalidFontFamily" font-size="35">ABC
</text> | |
63 | |
64 <text x="15" y="210" font-size="18">font-family = not specified</text> | |
65 <text x="340" y="210" font-size="35">ABC</text> | |
66 | |
67 </g> | |
68 | |
69 <text id="revision" x="10" y="340" font-size="40" stroke="none" fill="black"
>$Revision: 1.5 $</text> | |
70 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" strok
e="#000000"/> | |
71 | |
72 </svg> | |
OLD | NEW |