1
<?xml version="1.0" standalone="yes"?>
2
<svg width="400px" height="300px" version="1.1"
3
xmlns = 'http://www.w3.org/2000/svg'>
7
<!-- Fonts are declared inside defs tag -->
9
<font id="FirstExample" horiz-adv-x="1010">
10
<font-face font-family="Super Sans" font-style="oblique" font-stretch="ultra-expanded" />
12
<!-- This font has 2 glyphs (one for "@" and one for "!"): -->
13
<glyph unicode="!" glyph-name="Exclamation" d="M0,0h500v500h-500z"> <!-- Currently we only render the path description declared in the d attribute -->
14
<circle r='500' cx='500' cy='500' style="fill:none;stroke:green;"/> <!-- So... this part of the glyph wont render yet. -->
17
<glyph unicode="@" glyph-name="At Sign" d="M500,500h500v500h-500z">
18
<circle r='250' cx='500' cy='500' style="fill:blue;"/> <!-- This circle wont render yet -->
21
<!-- and also a missing-glyph, which is used for every other character on the string that do not have a specific glyph -->
22
<missing-glyph glyph-name="Missing..." d="M0,0h1000v1000h-1000z"></missing-glyph>
24
<!-- And every pair of "!" followed by "@" has a kerning of 500 units -->
25
<hkern u1="!" u2="@" k="500" />
31
<font id="AnotherSVGFont" horiz-adv-x="1100">
32
<font-face font-family="Super Sans2" font-style="oblique" font-stretch="ultra-expanded" />
33
<glyph unicode="!" glyph-name="exclamation" d="M0,0h500v500h-500v-300h100v200h300v-300h-400z" />
34
<glyph unicode="@!" glyph-name="A ligature glyph" d="M0,0h200L1000,800v200h-200L0,200z" />
35
<glyph unicode="@" glyph-name="At sign" d="M500,500h250v250h-250z" />
36
<missing-glyph glyph-name="The Missing Glyph" d="M0,0h1000v1000z"></missing-glyph>
37
<hkern u1="!" u2="@" k="1000" />
51
transform="scale(0.9668719,1.0342632)"
53
style="font-size:29.00615692px;fill:#ff0000;font-family:Super Sans">These text tags are not</text>
57
transform="scale(0.8031736,1.2450608)"
59
style="font-size:29.28532791px;fill:#008000;font-family:Super Sans">Go to Text->SVG Fonts... menu</text>
64
style="font-size:20px;fill:#ff0000;font-family:Super Sans">(but you will just have the menu</text>
69
style="font-size:20px;fill:#ff0000;font-family:Super Sans">if you compile libcairo from git</text>
73
transform="scale(0.801182,1.2481558)"
75
style="font-size:29.21271133px;fill:#008000;font-family:Super Sans">to see some actual rendering.</text>
79
transform="scale(0.9668719,1.0342632)"
81
style="font-size:29.00615692px;fill:#ff0000;font-family:Super Sans">rendering properly yet :-(</text>
85
transform="scale(0.7576769,1.3198238)"
87
style="font-size:13.01065731px;fill:#0000ff;font-family:Super Sans">(try typing strings with the @ and ! characteres on the SVG Fonts dialog!)</text>
92
style="font-size:20px;fill:#ff0000;font-family:Super Sans">before compiling inkscape)</text>
96
transform="scale(1.1755003,0.8507016)"
98
style="font-size:14.73784733px;fill:#008000;font-family:Super Sans">if you are really curious about it, you can look</text>
102
transform="scale(1.1755003,0.8507016)"
104
style="font-size:14.73784733px;fill:#008000;font-family:Super Sans">at the contents of this SVG file in a text editor.</text>
108
transform="scale(1.1755003,0.8507016)"
110
style="font-size:14.73784733px;fill:#008000;font-family:Super Sans">I have put some nice comments there for you!!!!</text></svg>