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

[whatwg] Canvas lack of drawString method

From: Gervase Markham <gerv@mozilla.org>
Date: Thu, 26 Oct 2006 17:38:57 +0100
Message-ID: <4540E4A1.1070206@mozilla.org>
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

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