diff options
| author | Felipe Corr??a da Silva Sanches <juca@members.fsf.org> | 2008-05-25 15:35:28 +0000 |
|---|---|---|
| committer | JucaBlues <JucaBlues@users.sourceforge.net> | 2008-05-25 15:35:28 +0000 |
| commit | c14ff7c7b9e4f564920cb37e89b2944aa9156f9a (patch) | |
| tree | 6cb0343c91d16b2dd93593c7b0a1a5459e076e9c /share/examples | |
| parent | Fix some compile warnings (diff) | |
| download | inkscape-c14ff7c7b9e4f564920cb37e89b2944aa9156f9a.tar.gz inkscape-c14ff7c7b9e4f564920cb37e89b2944aa9156f9a.zip | |
* add rule in configure.ac so that only who has cairo > 1.6.4 (currently cairo git master branch) will compile SVGFonts (experimental) support.
* First code for SVGFonts rendering. Renders in a separate window because we still dont have pango integration.
(bzr r5753)
Diffstat (limited to 'share/examples')
| -rw-r--r-- | share/examples/svgfont.svg | 29 |
1 files changed, 12 insertions, 17 deletions
diff --git a/share/examples/svgfont.svg b/share/examples/svgfont.svg index 4e9a06eab..10bac6e91 100644 --- a/share/examples/svgfont.svg +++ b/share/examples/svgfont.svg @@ -1,24 +1,19 @@ <?xml version="1.0" standalone="yes"?> <svg width="400px" height="300px" version="1.1" xmlns = 'http://www.w3.org/2000/svg'> - <defs> - <font id="Font1" horiz-adv-x="1000"> - <font-face font-family="Super Sans" font-weight="bold" - units-per-em="1234" font-style="normal, oblique" cap-height="600" x-height="400" - ascent="700" descent="300" - alphabetic="0" mathematical="350" ideographic="400" hanging="500"> - <font-face-src> - <font-face-name name="Super Sans Bold"/> - </font-face-src> - </font-face> - <!--<missing-glyph d="M0,0h200v200h-200z"/>--><!-- uncomment this line in orther to test missing-glyph --> - <glyph unicode="!" d="M0,0h500v500h-500z"><circle r='500' cx='500' cy='500' style="fill:none;stroke:green;"/></glyph> - <glyph unicode="@" d="M500,500h500v500h-500z"><circle r='250' cx='500' cy='500' style="fill:blue;"/></glyph> - <!--<hkern u1="!" u2="@" k="1000" />--><!-- uncomment this line in orther to test horizontal kerning--> + <font id="Font1" horiz-adv-x="1000"> + <font-face font-family="Super Sans" font-style="oblique" font-stretch="ultra-expanded" /> + <glyph unicode="!" d="M0,0h500v500h-500z"> + <circle r='500' cx='500' cy='500' style="fill:none;stroke:green;"/> + </glyph> + <glyph unicode="@" d="M500,500h500v500h-500z"> + <circle r='250' cx='500' cy='500' style="fill:blue;"/> + </glyph> + <missing-glyph d="M0,0h1000v1000h-1000z"></missing-glyph> + <hkern u1="!" u2="@" k="1000" /> </font> - </defs> - <text x="100" y="100" - style="font-family: 'Super Sans';font-weight: bold; font-style: normal;fill:red;">A!@A</text> + + <text x="100" y="100" style="font-size:70;font-family:'Super Sans';fill:red;">This text is not used yet. Currently test strings are hardcoded...</text> </svg> |
