~centralelyon2010/inkscape/imagelinks2

« back to all changes in this revision

Viewing changes to share/examples/svgfont.svg

  • Committer: JucaBlues
  • Date: 2009-01-05 23:49:00 UTC
  • Revision ID: jucablues@users.sourceforge.net-20090105234900-cu6djsgy1dr9t3cx
Another week coding offline...

* Adding Set Width (horiz-adv-x attribute) slider to the SVGFonts dialog.
* Fixed the order of some language options at the i18n preferences page.
* Fixed parsing and handling of u1 and u2 (CSS2 unicode range) attributes for kerning pair nodes
* Fixed a warning in helper-fns.h 
* commented out unused variable in sp-font.cpp
* refactoring of nr-svgfonts.cpp
* using 1000 instead of horiz-adv-x when scaling the glyph coordinates. Probably should use a value based on units-per-em in the future. Or maybe accent-height, 
cap-height, x-height... I don't know. I should study this subject a bit more first.



Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
       <font-face font-family="Super Sans" font-style="oblique" font-stretch="ultra-expanded" />
11
11
 
12
12
       <!-- This font has 2 glyphs (one for "@" and one for "!"): -->
13
 
       <glyph unicode="!" d="M0,0h500v500h-500z"> <!--  Currently we only render the path description declared in the d attribute  -->
 
13
       <glyph unicode="!" glyph-name="Exclamation" d="M0,0h500v500h-500z"> <!--  Currently we only render the path description declared in the d attribute  -->
14
14
          <circle r='500' cx='500' cy='500' style="fill:none;stroke:green;"/> <!-- So... this part of the glyph wont render yet. -->
15
15
       </glyph>
16
16
 
17
 
       <glyph unicode="@" d="M500,500h500v500h-500z">
 
17
       <glyph unicode="@" glyph-name="At Sign" d="M500,500h500v500h-500z">
18
18
          <circle r='250' cx='500' cy='500' style="fill:blue;"/> <!-- This circle wont render yet -->
19
19
       </glyph>
20
20
 
21
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 d="M0,0h1000v1000h-1000z"></missing-glyph>
 
22
       <missing-glyph glyph-name="Missing..." d="M0,0h1000v1000h-1000z"></missing-glyph>
23
23
 
24
24
       <!-- And every pair of "!" followed by "@" has a kerning of 500 units -->
25
25
       <hkern u1="!" u2="@" k="500" />
30
30
 
31
31
    <font id="AnotherSVGFont" horiz-adv-x="1100">
32
32
       <font-face font-family="Super Sans2" font-style="oblique" font-stretch="ultra-expanded" />
33
 
       <glyph unicode="!" d="M0,0h500v500h-500v-300h100v200h300v-300h-400z" />
34
 
       <glyph unicode="@!" d="M0,0h200L1000,800v200h-200L0,200z" />
35
 
       <glyph unicode="@" d="M500,500h250v250h-250z" />
36
 
       <missing-glyph d="M0,0h1000v1000z"></missing-glyph>
 
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
37
       <hkern u1="!" u2="@" k="1000" />
38
38
    </font>
39
39