[whatwg] Canvas lack of drawString method
Gervase Markham
gerv at mozilla.org
Thu Oct 26 09:38:57 PDT 2006
dolphinling wrote:
> What if the canvas and span are surrounded by something with
> font-weight:bold? Will the text in the canvas be drawn bold, too?
It's the responsibility of the page designer to make sure the text they
are measuring is styled the same as the text they want the metrics of.
According to the current API suggestion, the styling of the text in a
canvas will not be affected by the style of parent elements, but will be
defined by the style of the pseudo element name passed to the drawText
function.
Gerv
More information about the whatwg
mailing list