- From: Gervase Markham <gerv@mozilla.org>
- Date: Thu, 26 Oct 2006 17:38:57 +0100
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
Received on Thursday, 26 October 2006 09:38:57 UTC