blob: 7d20d226da12c3f133279c60606e6dc9954491db (
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
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg width="600" height="600"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
version="1.1"
viewBox="0 0 600 600">
<style type="text/css">
@font-face {
font-family: "Noto Sans";
src: url("fonts/NotoSans-Regular.ttf");
}
text {
font-family: Noto Sans;
font-size: 36px;
}
.title {
text-anchor: middle;
}
</style>
<g>
<text x="50" y="200">subscript: H<tspan style="font-size:65%;baseline-shift:sub">2</tspan>O</text>
<text x="50" y="300">superscript: m<tspan style="font-size:65%;baseline-shift:super">2</tspan></text>
<text x="530" y="200" style="writing-mode:tb-rl">subscript: H<tspan style="font-size:65%;baseline-shift:sub">2</tspan>O</text>
<text x="430" y="200" style="writing-mode:tb-rl">superscript: m<tspan style="font-size:65%;baseline-shift:super">2</tspan></text>
</g>
<text class="title" x="50%" y="120">Sub- and Superscript</text>
</svg>
|