SVG – Learning by Coding

[ font-stretch.svg --> Grafik anzeigen ]

 1: <?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
 2: <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN"
 3:   "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd" [
 4:   <!ATTLIST svg xmlns:xlink CDATA #FIXED "http://www.w3.org/1999/xlink">
 5: ]>
 6: 
 7: <!-- SVG Learning by Coding http://www.datenverdrahten.de/svglbc/ -->
 8: <!--    AuthorDrThomas Meinike 12/02 thomas@handmadecode.de     -->
 9: 
10: <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
11: 
12:   <title>SVG Learning by Coding</title>
13:   <desc>SVG-Spezifikation in Beispielen</desc>
14: 
15:   <defs>
16: 
17:     <style type="text/css">
18:     <![CDATA[
19: 
20:     text
21:     {
22:       font-familyVerdanaArialHelveticasans-serif;
23:       font-size16px;
24:       fill#000000;
25:     }
26: 
27:     tspan
28:     {
29:       font-familyVerdanaArialHelveticasans-serif;
30:       font-size16px;
31:       fill#FF0000;
32:     }
33: 
34:     text.fs0  {font-stretchnormal;}
35:     text.fs1  {font-stretchnarrower;}
36:     text.fs2  {font-stretchwider;}
37:     text.fs3  {font-stretchcondensed;}
38:     text.fs4  {font-stretchsemi-condensed;}
39:     text.fs5  {font-stretchextra-condensed;}
40:     text.fs6  {font-stretchultra-condensed;}
41:     text.fs7  {font-stretchexpanded;}
42:     text.fs8  {font-stretchsemi-expanded;}
43:     text.fs9  {font-stretchextra-expanded;}
44:     text.fs10 {font-stretchultra-expanded;}
45: 
46:     ]]>
47:     </style>
48: 
49:   </defs>
50: 
51:   <text x="20" y="30" style="fill: #000; font-size: 24px">Die CSS-Eigenschaft font-stretch</text>
52: 
53:   <text x="20" y="70" class="fs0">Testtext mit font-stretch: <tspan>normal</tspan>.</text>
54:   <text x="20" y="100" class="fs1">Testtext mit font-stretch: <tspan>narrower</tspan>.</text>
55:   <text x="20" y="130" class="fs2">Testtext mit font-stretch: <tspan>wider</tspan>.</text>
56:   <text x="20" y="160" class="fs3">Testtext mit font-stretch: <tspan>condensed</tspan>.</text>
57:   <text x="20" y="190" class="fs4">Testtext mit font-stretch: <tspan>semi-condensed</tspan>.</text>
58:   <text x="20" y="220" class="fs5">Testtext mit font-stretch: <tspan>extra-condensed</tspan>.</text>
59:   <text x="20" y="250" class="fs6">Testtext mit font-stretch: <tspan>ultra-condensed</tspan>.</text>
60:   <text x="20" y="280" class="fs7">Testtext mit font-stretch: <tspan>expanded</tspan>.</text>
61:   <text x="20" y="310" class="fs8">Testtext mit font-stretch: <tspan>semi-expanded</tspan>.</text>
62:   <text x="20" y="340" class="fs9">Testtext mit font-stretch: <tspan>extra-expanded</tspan>.</text>
63:   <text x="20" y="370" class="fs10">Testtext mit font-stretch: <tspan>ultra-expanded</tspan>.</text>
64: 
65: </svg>

[zum Anfang]