Re: [whatwg] Font metrics

2010-04-06 Thread Greg Brown
> 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") att

Re: [whatwg] Font metrics

2010-04-03 Thread Greg Brown
OK, that makes sense. Thanks for the info. On Apr 2, 2010, at 5:39 PM, Ian Hickson wrote: > On Fri, 2 Apr 2010, Greg Brown wrote: >> >> In reviewing the current draft API for the element >> (http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-ele

[whatwg] Font metrics

2010-04-02 Thread Greg Brown
Hi all, In reviewing the current draft API for the element (http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html), I noticed that there is no support for obtaining font metrics such as ascent, descent, leading, and bounding box. It seems like the most recent disc