- From: Dion Almaer <dion@almaer.com>
- Date: Thu, 8 Jul 2010 15:19:06 -0600
And if we are in there... Can we add the other attributes? For height in bespin we resorted to the width of "m" for the font :/ On Jul 8, 2010, at 2:49 PM, Charles Pritchard <chuck at jumis.com> wrote: > > We've been doing some work with html line boxes; mainly, mixed font styles in a text area, > using the HTML Canvas element. While Canvas fillText does have the textBaseline attribute, > in order to set the current alignment, it does not provide enough metrics through the measureText > function for us to exploit the textBaseline attribute across fonts (sizes and styles). > > Adding descent, to the measureText object would allow us to do more. > Currently, TextMetrics only returns "width". I'm proposing adding "descent" to that list. > > -Charles
Received on Thursday, 8 July 2010 14:19:06 UTC