| 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="CL" author="MI" status="accepted" |
| 15 |
version="$Revision: 1.6 $" testname="$RCSfile: text-fonts-04-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 |
Testing font-family attribute. |
| 19 |
Various text elements are |
| 20 |
used with varying values for the font-family attribute. |
| 21 |
</p> |
| 22 |
</d:testDescription> |
| 23 |
<d:operatorScript xmlns="http://www.w3.org/1999/xhtml"> |
| 24 |
<p> |
| 25 |
Run the test. No interaction required. |
| 26 |
</p> |
| 27 |
</d:operatorScript> |
| 28 |
<d:passCriteria xmlns="http://www.w3.org/1999/xhtml"> |
| 29 |
<p> |
| 30 |
The first two text elements should display in their respective fonts, |
| 31 |
<span style="font-family: Haettenschweiler">Haettenschweiler</span> and |
| 32 |
<span style="font-family: Charlesworth">Charlesworth</span>, |
| 33 |
if they are installed on the target system. Otherwise, simply |
| 34 |
displaying the text in some fallback font is enough to pass the test. |
| 35 |
The last two should be displayed using a fallback font since the |
| 36 |
value specified for font-family is either invalid or not specified. |
| 37 |
Failing to display the text means the test is not passed. |
| 38 |
</p> |
| 39 |
</d:passCriteria> |
| 40 |
</d:SVGTestCase> |
| 41 |
<title id="test-title">$RCSfile: text-fonts-04-t.svg,v $</title> |
| 42 |
<defs> |
| 43 |
<font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F"> |
| 44 |
<font-face-src> |
| 45 |
<font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/> |
| 46 |
</font-face-src> |
| 47 |
</font-face> |
| 48 |
</defs> |
| 49 |
<g id="test-body-content" font-size="18"> |
| 50 |
<!-- Deliberately leave off font-family from the template #test-body-content |
| 51 |
element, since we want the default font. --> |
| 52 |
|
| 53 |
<text x="15" y="60" font-family="SVGFreeSansASCII,sans-serif" font-size="18">font-family = "Haettenschweiler"</text> |
| 54 |
<text x="340" y="60" font-family="Haettenschweiler" font-size="35">ABC</text> |
| 55 |
|
| 56 |
<text x="15" y="110" font-family="SVGFreeSansASCII,sans-serif" font-size="18">font-family = "Charlesworth"</text> |
| 57 |
<text x="340" y="110" font-family="Charlesworth" font-size="35">ABC</text> |
| 58 |
|
| 59 |
<text x="15" y="160" font-family="SVGFreeSansASCII,sans-serif" font-size="18">font-family = "Invalid Name"</text> |
| 60 |
<text x="340" y="160" font-family="InvalidFontFamily" font-size="35">ABC</text> |
| 61 |
|
| 62 |
<text x="15" y="210" font-family="SVGFreeSansASCII,sans-serif" font-size="18">font-family = not specified</text> |
| 63 |
<text x="340" y="210" font-size="35">ABC</text> |
| 64 |
|
| 65 |
</g> |
| 66 |
<g font-family="SVGFreeSansASCII,sans-serif" font-size="32"> |
| 67 |
<text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.6 $</text> |
| 68 |
</g> |
| 69 |
<rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/> |
| 70 |
<!-- comment out this watermark once the test is approved --> |
| 71 |
<!--<g id="draft-watermark"> |
| 72 |
<rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/> |
| 73 |
<text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240" |
| 74 |
text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text> |
| 75 |
</g>--> |
| 76 |
</svg> |