[whatwg] Canvas lack of drawString method
lists at dolphinling.net
Wed Oct 25 11:32:37 PDT 2006
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?
More information about the whatwg