Revision control
Copy as Markdown
<?xml version="1.0" encoding="UTF-8"?>
<svg version="1.2" baseProfile="tiny" xml:id="svg-root" width="100%" height="100%"
<!--======================================================================-->
<!--= Copyright 2008 World Wide Web Consortium, (Massachusetts =-->
<!--= Institute of Technology, European Research Consortium for =-->
<!--= Informatics and Mathematics (ERCIM), Keio University). =-->
<!--= All Rights Reserved. =-->
<!--======================================================================-->
reviewer="CL" owner="DS" desc="Test for basic capability to handle 'text' elements and text presentation attributes." status="accepted"
approved="yes"
version="$Revision: 1.4 $" testname="$RCSfile: text-intro-201-t.svg,v $">
<d:OperatorScript xmlns:d="http://www.w3.org/2000/02/svg/testsuite/description/" xmlns="http://www.w3.org/1999/xhtml">
<p>Test text element, tspan element and various text styles.</p>
<p>The first group tests that text displays at all, that it displays in a straight line, and that the font style can be made italic or bold.</p>
<p>The second group tests that text can be treated as any other graphical element, with stroke and fill properties. The first word tests that fill color can be specified. The second word tests that stroke color can be specified in absence of fill. The third group tests the combination of all these effects. The final group tests positioning of 'text' elements.</p>
</d:OperatorScript>
</SVGTestCase>
<title xml:id="test-title">$RCSfile: text-intro-201-t.svg,v $</title>
<defs>
<font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F">
<font-face-src>
<font-face-uri xlink:href="../images/SVGFreeSans.svg#ascii" />
</font-face-src>
</font-face>
</defs>
<g xml:id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
<text x="19" y="61" font-size="32">Plain</text>
<text x="142" y="61" font-size="32" font-style="italic">Italic</text>
<text x="257" y="60" font-size="32" font-weight="bold">Bold</text>
<text x="224" y="110" font-size="32" fill="blue">fill only</text>
<text x="39" y="147" font-size="32" fill="none" stroke="red">stroke only</text>
<text x="10" y="200" font-size="32" font-style="italic" font-weight="bold" fill="blue" stroke="red">Bold, italic, fill and stroke</text>
<g>
<rect x="50" y="225" width="380" height="64" fill="none" stroke="black" stroke-width="2" />
<g>
<text x="55" y="245" font-size="24" fill="black">Each line of text which flows in a </text>
<text x="55" y="265" font-size="24" fill="black">rectangular box has to be broken</text>
<text x="55" y="285" font-size="24" fill="black">into separated lines.</text>
</g>
</g>
</g>
<g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
<text xml:id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.4 $</text>
</g>
<rect xml:id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000" />
<!-- comment out this watermark once the test is approved -->
<!--<g xml:id="draft-watermark">
<rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1" />
<text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240" text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
</g>-->
</svg>