W3C home > Mailing lists > Public > www-svg@w3.org > March 2002

Re: Re[2]: external glyph, howto

From: <lbenedek@ca.ibm.com>
Date: Fri, 22 Mar 2002 14:35:05 -0500
To: chris@w3.org
Cc: david@steadystate.co.uk, www-svg@w3.org
Message-ID: <OF85FC9045.6373698B-ON85256B84.0068501C@torolab.ibm.com>
Guys,

Thanks for your reply.
David got it right. The question is indeed :
How to reference this glyph from another file?
The example on w3c works fine in IE 6.0 using the Adobe SVG plugin.
But I don't thing the example uses an external glyph, it uses an external
font though.
Now, since the glyph element can have a font element as parent, being able
to
import the glyph makes sense to me.
The problem I have is in the file that displays the imported glyph.
Seems that it didn't get imported since a square is everything I got so
far.

Think I got the file that has de embedded font right, here is the source :

<?xml version="1.0" standalone="yes"?>
<svg width="100%" height="100%" xmlns = 'http://www.w3.org/2000/svg'>
  <defs>
    <font id="thai" horiz-adv-x="868" ><font-face
        font-family="Bitstream CyberBase"
        units-per-em="2048"
        panose-1="2 2 6 3 6 5 5 2 3 4"
        ascent="2146"
        descent="-524"
        alphabetic="0" />
      <missing-glyph horiz-adv-x="1229" d="M102
-362V1444H1126V-362H102ZM217 -248H1012V1329H217V-248Z" />
      <glyph unicode="&#xe11;" glyph-name="afii59697" horiz-adv-x="1395" d
="M233 637Q268 637 289 676T311 780Q311 847 290 886T231 926Q195 926 171
886T147 780Q147 713 170 675T233 637ZM1241 0H1057V1001Q1057 1037 1045
1055T1010 1073Q990 1073 972 1052T930
      977L649 338V0H465V1153L342 1075L244 1153Q219 1121 207 1080T195
987Q270 982 314 924T358 772Q358 686 324 638T229 590Q166 590 132 645T98
805Q98 958 137 1070T244 1227L342 1153L442 1221Q468 1238 481 1242T510
1247Q560 1247 604 1200T649 1092V541L881
      1061Q925 1160 973 1203T1087 1247Q1161 1247 1201 1193T1241 1038V0Z" />
    </font>
  </defs>
</svg>

Here is the text (character) in the other file that I want to display :
  <text>&#xe11;</text>

Few lines a code would be helpful.

Thanks.
Received on Friday, 22 March 2002 14:35:14 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:21 GMT