Cameron McCormack wrote: > Can someone help me get SVG fonts working in ASV? I write SVG documents > testing them against Batik and then when I get to trying them in ASV I'm > always disappointed. :( > > Anyway, this document: > > <svg xmlns="http://www.w3.org/2000/svg" width="400" height="400"> > <defs> > <font> > <font-face font-family="CMR"/> > <glyph unicode="H" glyph-name="H" horiz-adv-x="750" d="M 33 0 m > 580 605 c 0 36 2 47 79 47 h 24 v 31 c -35 -3 -109 -3 -147 -3 c -38 0 -113 0 > -148 3 v -31 h 24 c 77 0 79 -11 79 -47 v -234 h -299 v 234 c 0 36 2 47 79 47 > h 24 v 31 c -35 -3 -109 -3 -147 -3 c -38 0 -113 0 -148 3 v -31 h 24 c 77 0 79 > -11 79 -47 v -527 c 0 -36 -2 -47 -79 -47 h -24 v -31 c 35 3 109 3 147 3 c 38 > 0 113 0 148 -3 v 31 h -24 c -77 0 -79 11 -79 47 v 262 h 299 v -262 c 0 -36 -2 > -47 -79 -47 h -24 v -31 c 35 3 109 3 147 3 c 38 0 113 0 148 -3 v 31 h -24 c > -77 0 -79 11 -79 47 z"/> > </font> > </defs> > <text x="200" y="200" font-size="40" font-family="CMR, > sans-serif">HELLO</text> > </svg> > > works fine in Batik. The "H" of the "HELLO" is rendered in Computer > Modern Roman, and the "ELLO" is in some sans serif font. In ASV 3 under > Linux, it crashes firefox. In ASV 3 under Windows, I just get a blank > document. > > What can I do to make the font work in ASV?
After some experimentation, it seems that ASV needs a missing-glyph element inside the font one. After I added one, it works fine, but of course (?), the glyphs E, L and O are rendered with the missing-glyph, not with the sans-serif font. I don't know the spec. enough to say if this is the required behavior or not. -- Philippe Lhoste -- (near) Paris -- France -- http://Phi.Lho.free.fr -- For servers mangling my From and Reply-To fields, -- please send private answers to PhiLho(a)GMX.net -- -- -- -- -- -- -- -- -- -- -- -- -- -- ----- To unsubscribe send a message to: [EMAIL PROTECTED] -or- visit http://groups.yahoo.com/group/svg-developers and click "edit my membership" ---- Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/svg-developers/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

