~valavanisalex/ubuntu/oneiric/inkscape/inkscape_0.48.1-2ubuntu4

« back to all changes in this revision

Viewing changes to share/examples/svgfont.svg

  • Committer: Bazaar Package Importer
  • Author(s): Kees Cook, Ted Gould, Kees Cook
  • Date: 2009-06-24 14:00:43 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20090624140043-07stp20mry48hqup
Tags: 0.47~pre0-0ubuntu1
* New upstream release

[ Ted Gould ]
* debian/control: Adding libgsl0 and removing version specifics on boost

[ Kees Cook ]
* debian/watch: updated to run uupdate and mangle pre-release versions.
* Dropped patches that have been taken upstream:
  - 01_mips
  - 02-poppler-0.8.3
  - 03-chinese-inkscape
  - 05_fix_latex_patch
  - 06_gcc-4.4
  - 07_cdr2svg
  - 08_skip-bad-utf-on-pdf-import
  - 09_gtk-clist
  - 10_belarussian
  - 11_libpng
  - 12_desktop
  - 13_slider
  - 100_svg_import_improvements
  - 102_sp_pattern_painter_free
  - 103_bitmap_type_print

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" standalone="yes"?>
 
2
<svg width="400px" height="300px" version="1.1"
 
3
  xmlns = 'http://www.w3.org/2000/svg'>
 
4
 
 
5
  <defs>
 
6
 
 
7
<!-- Fonts are declared inside defs tag -->
 
8
 
 
9
    <font id="FirstExample" horiz-adv-x="1010">
 
10
       <font-face font-family="Super Sans" font-style="oblique" font-stretch="ultra-expanded" />
 
11
 
 
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. -->
 
15
       </glyph>
 
16
 
 
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 -->
 
19
       </glyph>
 
20
 
 
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>
 
23
 
 
24
       <!-- And every pair of "!" followed by "@" has a kerning of 500 units -->
 
25
       <hkern u1="!" u2="@" k="500" />
 
26
    </font>
 
27
 
 
28
 
 
29
 
 
30
 
 
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" />
 
38
    </font>
 
39
 
 
40
 
 
41
  </defs>
 
42
 
 
43
 
 
44
 
 
45
 
 
46
 
 
47
 
 
48
  <text
 
49
     x="7.874177"
 
50
     y="36.833214"
 
51
     transform="scale(0.9668719,1.0342632)"
 
52
     id="text32"
 
53
     style="font-size:29.00615692px;fill:#ff0000;font-family:Super Sans">These text tags are not</text>
 
54
  <text
 
55
     x="6.890748"
 
56
     y="115.90917"
 
57
     transform="scale(0.8031736,1.2450608)"
 
58
     id="text34"
 
59
     style="font-size:29.28532791px;fill:#008000;font-family:Super Sans">Go to Text-&gt;SVG Fonts... menu</text>
 
60
  <text
 
61
     x="29.545364"
 
62
     y="233.2552"
 
63
     id="text36"
 
64
     style="font-size:20px;fill:#ff0000;font-family:Super Sans">(but you will just have the menu</text>
 
65
  <text
 
66
     x="44.293743"
 
67
     y="253.09889"
 
68
     id="text36-0"
 
69
     style="font-size:20px;fill:#ff0000;font-family:Super Sans">if you compile libcairo from git</text>
 
70
  <text
 
71
     x="53.391254"
 
72
     y="140.27116"
 
73
     transform="scale(0.801182,1.2481558)"
 
74
     id="text34-1"
 
75
     style="font-size:29.21271133px;fill:#008000;font-family:Super Sans">to see some actual rendering.</text>
 
76
  <text
 
77
     x="31.479643"
 
78
     y="64.017517"
 
79
     transform="scale(0.9668719,1.0342632)"
 
80
     id="text32-5"
 
81
     style="font-size:29.00615692px;fill:#ff0000;font-family:Super Sans">rendering properly yet :-(</text>
 
82
  <text
 
83
     x="36.78632"
 
84
     y="153.77176"
 
85
     transform="scale(0.7576769,1.3198238)"
 
86
     id="text36-7"
 
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>
 
88
  <text
 
89
     x="110.99423"
 
90
     y="273.37473"
 
91
     id="text36-0-5"
 
92
     style="font-size:20px;fill:#ff0000;font-family:Super Sans">before compiling inkscape)</text>
 
93
  <text
 
94
     x="0.022930607"
 
95
     y="348.74777"
 
96
     transform="scale(1.1755003,0.8507016)"
 
97
     id="text36-0-5-8"
 
98
     style="font-size:14.73784733px;fill:#008000;font-family:Super Sans">if you are really curious about it, you can look</text>
 
99
  <text
 
100
     x="13.972846"
 
101
     y="369.73709"
 
102
     transform="scale(1.1755003,0.8507016)"
 
103
     id="text36-0-5-8-6"
 
104
     style="font-size:14.73784733px;fill:#008000;font-family:Super Sans">at the contents of this SVG file in a text editor.</text>
 
105
  <text
 
106
     x="3.4043651"
 
107
     y="414.45972"
 
108
     transform="scale(1.1755003,0.8507016)"
 
109
     id="text36-0-5-8-2"
 
110
     style="font-size:14.73784733px;fill:#008000;font-family:Super Sans">I have put some nice comments there for you!!!!</text></svg>
 
111