blob: 79792ed33b6bfa496e39dee468d369253a1dde2c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
<?xml version="1.0" encoding="utf-8"?>
<svg id="svg-root"
width="100%" height="100%" viewBox="0 0 480 360"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:html="http://www.w3.org/1999/xhtml">
<g id="testmeta">
<title>Text: Text Anchor — 202</title>
<html:link rel="author"
title="Tavmjong Bah"
href="mailto:tavmjong@free.fr"/>
<html:link rel="help"
href="https://svgwg.org/svg2-draft/text.html#TextAnchoringProperties"/>
<html:link rel="match" href="text-text-anchor-202-ref.svg" />
</g>
<style id="test-font" type="text/css">
/* Standard Font (if needed). */
@font-face {
font-family: FreeSans;
src: url("fonts/FreeSans.woff") format("woff"),
local("FreeSans");
}
text { font-family: FreeSans, sans-serif }
</style>
<style id="test-style" type="text/css">
/* Style that is being tested (if needed). */
text { font-family: FreeSans, sans-serif }
</style>
<!-- TEMP -->
<g id="test-body-reference" style="font-size:16px;writing-mode:tb-rl;fill:red">
<g transform="translate(0,0)">
<circle cx="140" cy="200" r="2" style="fill:red"/>
<text x="140" y="200">Lorem ipsum dolor</text>
</g>
<g transform="translate(80,0)">
<circle cx="140" cy="200" r="2" style="fill:red"/>
<text x="140" y="200" style="text-anchor:middle">sit amet, consectetur</text>
</g>
<g transform="translate(160,0)">
<circle cx="140" cy="200" r="2" style="fill:red"/>
<text x="140" y="200" style="text-anchor:end">adipisicing elit,</text>
</g>
</g>
<g id="test-body-content" style="font-size:16px;writing-mode:tb-rl">
<text>
<tspan x="140" y="200" style="text-anchor:start">Lorem ipsum dolor</tspan>
<tspan x="220" y="200" style="text-anchor:middle">sit amet, consectetur</tspan>
<tspan x="300" y="200" style="text-anchor:end">adipisicing elit,</tspan>
</text>
</g>
</svg>
|