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

Re: [svg2] Text bbox calculations

From: Erik Dahlström <ed@opera.com>
Date: Thu, 13 Mar 2014 15:43:20 +0100
To: www-svg@w3.org, "David Dailey" <ddailey@zoominternet.net>
Message-ID: <op.xcn0iirudhsuf5@gnorps>
On Thu, 13 Mar 2014 03:48:59 +0100, David Dailey  
<ddailey@zoominternet.net> wrote:

> I'm not sure what the 'full glyph cell' means but I do sense the  
> following:
> a) An author ought to be able to interrogate the actual size of a given  
> glyph as drawn in the browser/viewer (even if SVG 2 ends up not  
> supporting svg-fonts).

I agree. Somewhat related to this, the WG has already resolved to add an  
API for extracting glyph outlines as path data:


Adding a getBBox method to SVGPathSegList (or it's future replacement)  
might be one way to do this, or alternatively one could create a path  
element from that path data and query the bbox from there.

Erik Dahlstrom, Web Technology Developer, Opera Software
Co-Chair, W3C SVG Working Group
Received on Thursday, 13 March 2014 14:44:06 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:54:51 UTC