|
1 <?xml version="1.0" encoding="UTF-8"?> |
|
2 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Tiny//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-tiny.dtd"> |
|
3 |
|
4 <!--======================================================================--> |
|
5 <!--= Copyright 2000 World Wide Web Consortium, (Massachusetts =--> |
|
6 <!--= Institute of Technology, Institut National de Recherche en =--> |
|
7 <!--= Informatique et en Automatique, Keio University). All Rights =--> |
|
8 <!--= Reserved. See http://www.w3.org/Consortium/Legal/. =--> |
|
9 <!--======================================================================--> |
|
10 <!-- =====================================================================--> |
|
11 <!-- --> |
|
12 <!-- text-font-BE-15.svg --> |
|
13 <!-- renamed for 1.1 suite to text-fonts-01-t.svg --> |
|
14 <!-- --> |
|
15 <!-- Test that viewer has the basic capability to handle font --> |
|
16 <!-- families, both generic and named fonts WORKS CSIRO --> |
|
17 <!-- --> |
|
18 <!-- Author : Chris Lilley, 01-Mar-2000 --> |
|
19 <!-- 1.1 revision by Rick Graham --> |
|
20 <!-- Revised for Mobile Profiles: Jun Fujisawa 16-Jul-2002 --> |
|
21 <!-- --> |
|
22 <!-- History: --> |
|
23 <!-- 01-Mar-2000, CL, Serial#1 created. Matches 20000110 SVG spec. --> |
|
24 <!-- 09-Mar-2000, CL, altered 449 to 448 for outline box --> |
|
25 <!-- 22-Mar-2000, CL, adjusted japanese text so it says japanese --> |
|
26 <!-- word for "graphic image" (gazou), ser#2 --> |
|
27 <!-- 17-Aug-2000, CL, updated to 20000802 dtd, ser#3 --> |
|
28 <!-- 21-Aug-2000, LH, renamed for integration. --> |
|
29 <!-- 14-Nov-2000, LH: move defs into test-body-content. --> |
|
30 <!-- 26-Nov-2000, LH: put class "foo" back onto text elts group. --> |
|
31 <!-- 07-Dec-2000, JF: Remove 'd' from 'monospaced' --> |
|
32 <!-- =====================================================================--> |
|
33 <!--======================================================================--> |
|
34 <!--= Note. After October 2000, revision history is kept as CVS 'commit' =--> |
|
35 <!--= log messages, and therefore is no longer in the preceding preamble.=--> |
|
36 <!--======================================================================--> |
|
37 <svg version="1.1" baseProfile="tiny" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="svg-root" width="100%" height="100%" viewBox="0 0 480 360"> |
|
38 <SVGTestCase xmlns="http://www.w3.org/2000/02/svg/testsuite/description/"> |
|
39 <OperatorScript version="$Revision: 1.5 $" testname="text-fonts-01-t.svg"> |
|
40 <Paragraph> |
|
41 Purpose of test is to determine if the font family is being |
|
42 correctly selected. The top two lines of text test serif fonts; |
|
43 the top line in maroon tests the generic font family 'serif' |
|
44 and the second line in black tests a selection of commonly |
|
45 available named serif fonts. The next two lines of text test |
|
46 sans-serif fonts; |
|
47 the top line in maroon tests the generic font family 'sans-serif' |
|
48 and the second line in black tests a selection of commonly |
|
49 available named sans serif fonts. The following two lines |
|
50 of text test monospaced fonts; |
|
51 the top line in maroon tests the generic font family 'monospaced' |
|
52 and the second line in black tests a selection of commonly |
|
53 available named monospaced fonts. The lowercase 'i' and uppercase'W' |
|
54 should be the same width,for monospaced fonts. |
|
55 </Paragraph> |
|
56 <Paragraph> |
|
57 The seventh line of text, in green, tests for |
|
58 three non-existent fonts (nonsense names). There is no fallback |
|
59 generic font specified. The text must be displayed anyway. |
|
60 </Paragraph> |
|
61 <Paragraph> |
|
62 The first six lines contain two Japanese characters (画像) |
|
63 at the end of the line. Both of these characters must be displayed, |
|
64 although it is compliant to display them with the 'missing glyph' |
|
65 if no suitable font containing Japanese characters can be found. |
|
66 Most but not all fonts have a visible missing glyph character. |
|
67 If the selected font has a visible missing glyph character, it should appear |
|
68 wherever the corresponding glyph is not available. |
|
69 <!-- can also be used for copy and paste tests; correct characters |
|
70 to be pasted even if displayed with missing glyph --> |
|
71 </Paragraph> |
|
72 </OperatorScript> |
|
73 </SVGTestCase> |
|
74 <title id="test-title">text-fonts-01-t.svg</title> |
|
75 <desc id="test-desc"> |
|
76 Test that viewer has the basic capability to handle different font families </desc> |
|
77 <!--======================================================================--> |
|
78 <!--Content of Test Case follows... =====================--> |
|
79 <!--======================================================================--> |
|
80 <g id="test-body-content"> |
|
81 <g font-weight="normal" font-size="24" stroke="none"> |
|
82 <text font-family="Georgia, 'Minion Web', 'Times New Roman', Times, 'MS PMincho', Heisei-Mincho, serif " x="20" y="80">A serifed face 画像</text> |
|
83 <text font-family="Arial, 'Arial Unicode', 'Myriad Web', Geneva, 'Lucida Sans Unicode', 'MS PGothic', Osaka, sans-serif " x="20" y="160">A sans-serif face 画像</text> |
|
84 <text font-family="'Lucida Console', 'Courier New', Courier, Monaco, 'MS Gothic', Osaka-Mono, monospace" x="20" y="240">A mono (iW) face 画像</text> |
|
85 <g id="generic" fill="maroon"> |
|
86 <text font-family="serif" x="40" y="50">A serifed face 画像</text> |
|
87 <text font-family="sans-serif " x="40" y="130">A sans-serif face 画像</text> |
|
88 <text font-family="monospace " x="40" y="210">A mono (iW) face 画像</text> |
|
89 </g> |
|
90 <text fill="green" font-family="'No such font at all', 'another fictitious one', sillynamewithoutspaces" x="40" y="290">This must be displayed</text> |
|
91 </g> |
|
92 </g> |
|
93 |
|
94 |
|
95 <text id="revision" x="10" y="340" font-size="40" stroke="none" fill="black">$Revision: 1.5 $</text> |
|
96 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/> |
|
97 </svg> |
|
98 |