[whatwg] Canvas lack of drawString method

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?

-- 
dolphinling
<http://dolphinling.net/>

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