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

Re[2]: external glyph, howto

From: Chris Lilley <chris@w3.org>
Date: Fri, 22 Mar 2002 14:30:28 +0100
Message-ID: <1202706031.20020322143028@w3.org>
To: "David Schweinsberg" <david@steadystate.co.uk>
CC: lbenedek@ca.ibm.com, www-svg@w3.org
On Friday, 22 March, 2002, 13:19:29, David wrote:

DS> Perhaps I'm failing to understand the question, but the supplied SVG code
DS> works correctly.

DS> What is the question?  How to reference this glyph from another file?

I am not sure of the question either, which is why I asked for more details.

But yes, I suspect the question is 'how do I put this into an external
file" and the answer is "like the spec says" and the answer to the
unasked question is "no this won't work in ASV 3.0 but will work in
Batik and CSIRO"

DS> Regards,

DS> David Schweinsberg

DS> ----- Original Message -----
DS> From: <lbenedek@ca.ibm.com>
DS> To: "Chris Lilley" <chris@w3.org>
DS> Cc: <www-svg@w3.org>
DS> Sent: Wednesday, March 20, 2002 2:51 PM
DS> Subject: Re: external glyph, howto


>> >So you need to decide if the modifications introduced an error, or
>> >whether the implementation you are using (you don't say which one, on
>> ><what platform, which revision etc) has a bug.
>> >Does the unmodified example work?
>>
>> Chris,
>>
>> I ran the example with IE 5.0 on NT and it works fine.
>> Here is the embedded glyph I want to import:
>>
>> <?xml version="1.0" standalone="no"?> <!DOCTYPE svg PUBLIC "-//W3C//DTD
DS> SVG
>> 1.0//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd" > <svg
>> width="100%" height="100%">
>> <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="&#xe12;" glyph-name="afii59698" horiz-adv-x="1567" d="M827
>> 45V403Q744 374 706 330T668 221Q668 153 710 106T827 45ZM563 1149Q625 1200
>> 685 1226T801 1253Q898 1253 956 1189T1014 1014V449Q1079 416 1131 354T1229
>> 193V1229H1413V0H1253Q1204
>> 158 1147 256T1014 410V74Q1014 28 1003 14T958 0H870Q758 0 691 61T623
DS> 223Q623
>> 306 673 361T827 449V1042Q827 1112 810 1140T754 1169Q722 1169 684 1142T563
>> 1024L552 1036Q425 1169 354 1169Q311 1169 293 1141T274 1038V152Q389 254 456
>> 353T542 551Q475
>> 553 438 601T401 735Q401 818 439 869T537 920Q593 920 627 871T662 737Q662
DS> 590
>> 557 386T274 0H90V1014Q90 1124 148 1188T303 1253Q377 1253 442 1227T563
>> 1149ZM537 891Q500 891 475 847T449 737Q449 674 471 635T530 596Q568 596 590
>> 635T612 745Q612 810 591
>> 850T537 891Z" />
>> </font>
>> </defs>
>> <g style="font-family: Bitstream CyberBase; font-size:40; fill:black">
>>   <text x="15" y="30">&#xe12;</text>
>> </g>
>> </svg>
>>
>> The glyph has been created using the ttf2svg converter.
>> What I did was to add this font (thai) and the above text (hex value) into
>> the example.
>>



-- 
 Chris                            mailto:chris@w3.org
Received on Friday, 22 March 2002 08:32:29 GMT

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