W3C home > Mailing lists > Public > www-svg@w3.org > May 2011

Re: measuring glyphs with script -- can it be done?

From: Nikolas Zimmermann <zimmermann@physik.rwth-aachen.de>
Date: Mon, 30 May 2011 09:55:03 +0200
Message-id: <BF04ABC5-56CB-4B25-9A3A-572F8623D89F@physik.rwth-aachen.de>
Cc: 'www-svg' <www-svg@w3.org>
To: David Dailey <ddailey@zoominternet.net>

Am 29.05.2011 um 21:09 schrieb David Dailey:

> I’ve been fussing with this problem for some time now and am beginning to think the spec is broken in addition to all the browsers.
>  
> Perhaps someone can show me a different approach? An additional approach?
>  
> To give an idea of the problem take a look at this picture
> http://srufaculty.sru.edu/david.dailey/svg/TopAlignBrowsers.png
> of how five browsers handle the file at
> http://granite.sru.edu/~ddailey/svg/tspanmeasure.svg
>  
> For an explanation of what is going on see here:
> http://granite.sru.edu/~ddailey/svg/tspanmeasure3.svg
>  
> I have manually positioned the glyphs of the word “trampoline” so that the tops of the glyphs all align at the red line above. This is a standard typographic effect used in numerous logos, shop signs, advertisements, album covers, etc.
>  
> All browsers seem to manage this manual use of a comma-delimited set of y-values on a text tag: y="128,120,120,120,120,120,128,127,120,127,120,120", though in this case I also added a bit of stretching: textLength="605" lengthAdjust="spacingAndGlyphs". SBUG means suspected bug; with all the bugs found here, I suspect it will be 2017 by the time I have figured out how to and actually gotten around to filing all the bug reports in all these different browsers. I’m more concerned with how to do what I want to rather than where I can do it.
>  
> Results of stretching:
> IE9 and Opera behave as I think they should,
> SBUG: FF seems to stretch the glyphs but not the spacing and not just horizontally, and not the right amount
> SBUG: Safari stretches the spacing but not the glyphs
It seems when using multiply y values, we have a problem with handling textLength at all, can you please file a bug at bugs.webkit.org?


> SBUG: Sarari doesn’t antialias the text
> SBUG: Chrome – oh my – this is just awful!
Really? Try without a y list, does it work now?

Thanks in advance,
Niko
Received on Monday, 30 May 2011 07:55:30 GMT

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