| 1 |
<svg version="1.1" baseProfile="tiny" id="svg-root" |
| 2 |
width="100%" height="100%" viewBox="0 0 480 360" |
| 3 |
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> |
| 4 |
<!--======================================================================--> |
| 5 |
<!--= SVG 1.1 2nd Edition Test Case =--> |
| 6 |
<!--======================================================================--> |
| 7 |
<!--= Copyright 2009 World Wide Web Consortium, (Massachusetts =--> |
| 8 |
<!--= Institute of Technology, European Research Consortium for =--> |
| 9 |
<!--= Informatics and Mathematics (ERCIM), Keio University). =--> |
| 10 |
<!--= All Rights Reserved. =--> |
| 11 |
<!--= See http://www.w3.org/Consortium/Legal/. =--> |
| 12 |
<!--======================================================================--> |
| 13 |
<d:SVGTestCase xmlns:d="http://www.w3.org/2000/02/svg/testsuite/description/" |
| 14 |
template-version="1.4" reviewer="SVGWG" author="Chris Lilley" status="accepted" |
| 15 |
version="$Revision: 1.5 $" testname="$RCSfile: text-fonts-01-t.svg,v $"> |
| 16 |
<d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://www.w3.org/TR/SVG11/text.html#FontPropertiesUsedBySVG"> |
| 17 |
<p> |
| 18 |
Purpose of test is to determine if the font family is being |
| 19 |
correctly selected. The top two lines of text test serif fonts; |
| 20 |
the top line in maroon tests the generic font family 'serif' |
| 21 |
and the second line in black tests a selection of commonly |
| 22 |
available named serif fonts. The next two lines of text test |
| 23 |
sans-serif fonts; |
| 24 |
the top line in maroon tests the generic font family 'sans-serif' |
| 25 |
and the second line in black tests a selection of commonly |
| 26 |
available named sans serif fonts. The following two lines |
| 27 |
of text test monospaced fonts; |
| 28 |
the top line in maroon tests the generic font family 'monospaced' |
| 29 |
and the second line in black tests a selection of commonly |
| 30 |
available named monospaced fonts. The lowercase 'i' and uppercase'W' |
| 31 |
should be the same width,for monospaced fonts. |
| 32 |
</p> |
| 33 |
<p> |
| 34 |
The seventh line of text, in green, tests for |
| 35 |
three non-existent fonts (nonsense names). There is no fallback |
| 36 |
generic font specified. The text must be displayed anyway. |
| 37 |
</p> |
| 38 |
</d:testDescription> |
| 39 |
<d:operatorScript xmlns="http://www.w3.org/1999/xhtml"> |
| 40 |
<p> |
| 41 |
Run the test. No interaction required. |
| 42 |
</p> |
| 43 |
</d:operatorScript> |
| 44 |
<d:passCriteria xmlns="http://www.w3.org/1999/xhtml"> |
| 45 |
<p> |
| 46 |
The first six lines contain two Japanese characters (画像) |
| 47 |
at the end of the line. Both of these characters must be displayed, |
| 48 |
although it is compliant to display them with the 'missing glyph' |
| 49 |
if no suitable font containing Japanese characters can be found. |
| 50 |
Most but not all fonts have a visible missing glyph character. |
| 51 |
If the selected font has a visible missing glyph character, it should appear |
| 52 |
wherever the corresponding glyph is not available. |
| 53 |
</p> |
| 54 |
</d:passCriteria> |
| 55 |
</d:SVGTestCase> |
| 56 |
<title id="test-title">$RCSfile: text-fonts-01-t.svg,v $</title> |
| 57 |
<defs> |
| 58 |
<font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F"> |
| 59 |
<font-face-src> |
| 60 |
<font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/> |
| 61 |
</font-face-src> |
| 62 |
</font-face> |
| 63 |
</defs> |
| 64 |
<g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18"> |
| 65 |
<g font-weight="normal" font-size="24" stroke="none"> |
| 66 |
<text font-family="Georgia, 'Minion Web', 'Times New Roman', Times, 'MS PMincho', Heisei-Mincho, serif " x="20" y="80">A serifed face 画像</text> |
| 67 |
<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> |
| 68 |
<text font-family="'Lucida Console', 'Courier New', Courier, Monaco, 'MS Gothic', Osaka-Mono, monospace" x="20" y="240">A mono (iW) face 画像</text> |
| 69 |
<g id="generic" fill="maroon"> |
| 70 |
<text font-family="serif" x="40" y="50">A serifed face 画像</text> |
| 71 |
<text font-family="sans-serif " x="40" y="130">A sans-serif face 画像</text> |
| 72 |
<text font-family="monospace " x="40" y="210">A mono (iW) face 画像</text> |
| 73 |
</g> |
| 74 |
<text fill="green" font-family="'No such font at all', 'another fictitious one', sillynamewithoutspaces" x="40" y="290">This must be displayed</text> |
| 75 |
</g> |
| 76 |
</g> |
| 77 |
<g font-family="SVGFreeSansASCII,sans-serif" font-size="32"> |
| 78 |
<text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.5 $</text> |
| 79 |
</g> |
| 80 |
<rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/> |
| 81 |
<!-- comment out this watermark once the test is approved --> |
| 82 |
<!--<g id="draft-watermark"> |
| 83 |
<rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/> |
| 84 |
<text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240" |
| 85 |
text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text> |
| 86 |
</g>--> |
| 87 |
</svg> |