W3C home > Mailing lists > Public > whatwg@whatwg.org > October 2006

[whatwg] Canvas lack of drawString method

From: dolphinling <lists@dolphinling.net>
Date: Wed, 25 Oct 2006 14:32:37 -0400
Message-ID: <453FADC5.5080404@dolphinling.net>
Gervase Markham wrote:
> Stefan Haustein wrote:
>> I think it is very important to be able to determine the rendered size 
>> of the text.
> Can't you determine the size from the accessible version you are 
> doubtless creating inside the <canvas> element? ;-)
> (This assumes that if you draw a string in 8px Monaco on a <canvas>, and 
> do the same thing in a <span>, the span will have the same size as the 
> canvas version. But that seems to make sense to me.)

What if the canvas and span are surrounded by something with font-weight:bold? 
Will the text in the canvas be drawn bold, too?

Received on Wednesday, 25 October 2006 11:32:37 UTC

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