Debian Codegraph @

testsuite/svg/manual/text-vertical.svg

raw symbols SCIP
1 <svg width="128" height="128" viewBox="0 0 128 128" xmlns="http://www.w3.org/2000/svg" version="2.0">
2 <d:SVGTestCase xmlns:d="http://www.w3.org/2000/02/svg/testsuite/description/" author="Florian Leander Singer" status="accepted">
3 <d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://www.w3.org/TR/SVG11/text.html#TextElement">
4 <p>Test vertical text rendering</p>
5 </d:testDescription>
6 <d:operatorScript xmlns="http://www.w3.org/1999/xhtml">
7 <p>Run the test. No interaction required.</p>
8 </d:operatorScript>
9 <d:passCriteria xmlns="http://www.w3.org/1999/xhtml">
10 <p>The test is passed if:</p>
11 <ul>
12 <li>The string on the left side is vertical and with the exception of the first three non-latin glyphs has a red to blue horizontal gradient</li>
13 <li>The string &apos;Hello&apos; is semi-transparent (appears gray on white background)</li>
14 <li>The string on the right is readable and has the same gradient as the string on the left</li>
15 </ul>
16 </d:passCriteria>
17 </d:SVGTestCase>
18
19 <defs>
20 <linearGradient id="gr">
21 <stop offset="0%" stop-color="red" />
22 <stop offset="100%" stop-color="blue" />
23 </linearGradient>
24 </defs>
25 <text x="32" y="10" font-family="Noto Sans CJK" font-size="16" fill="url(#gr)" writing-mode="vertical-rl"><tspan font-family="SVGFreeSansASCII,sans-serif">Alpha</tspan> <tspan fill="#000000">私は車</tspan>がありません</text>
26 <text x="64" y="64" font-family="SVGFreeSansASCII,sans-serif" font-size="16" fill-opacity=".5" text-anchor="middle">Hello</text>
27 <text x="96" y="10" font-family="Noto Sans CJK" font-size="16" fill="url(#gr)" writing-mode="vertical-lr"><tspan font-family="SVGFreeSansASCII,sans-serif">Beta</tspan> <tspan fill="#000000">私は車</tspan>がありません</text>
28 </svg>