W3C home > Mailing lists > Public > whatwg@whatwg.org > April 2010

[whatwg] Font metrics

From: Greg Brown <gkbrown@mac.com>
Date: Tue, 06 Apr 2010 09:44:10 -0400
Message-ID: <345E78BC-C3B4-4752-8E45-297A6CD17DAB@mac.com>
> a extra readonly attribute float "height" to the "TextMetrics" interface should be fairly trivial to implement for browser vendors and would greatly help web developers layout text in Canvas.

It would certainly help - might it also be possible to add a similar "baseline" (or "ascent") attribute? If so, I would be very happy, since this would cover most (if not all) of my use cases.  :-)

Greg

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20100406/a47a117e/attachment.htm>
Received on Tuesday, 6 April 2010 06:44:10 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:22 UTC