W3C home > Mailing lists > Public > public-html@w3.org > July 2009

Re: canvas text: web fonts

From: Robert O'Callahan <robert@ocallahan.org>
Date: Thu, 23 Jul 2009 11:55:45 +1200
Message-ID: <11e306600907221655l5d866424nbbf66c967796db93@mail.gmail.com>
To: Simon Pieters <simonp@opera.com>
Cc: "public-html@w3.org" <public-html@w3.org>
On Wed, Jul 22, 2009 at 10:03 PM, Simon Pieters <simonp@opera.com> wrote:

> I guess we could do that. The script could still draw with a fallback font
> by setting .font to a different value.


> I think this needs to hook into the algorithm for strokeText() and
> fillText() (throwing and causing the font to start to load if it isn't
> already being loaded).


>  When the font is fully
>> loaded then a "fontloaded" event should fire at the canvas, so script can
>> redraw the text.
> I guess causing the event to be fired at the right element is also
> something that the above-mentioned algorithm needs to cover.


"He was pierced for our transgressions, he was crushed for our iniquities;
the punishment that brought us peace was upon him, and by his wounds we are
healed. We all, like sheep, have gone astray, each of us has turned to his
own way; and the LORD has laid on him the iniquity of us all." [Isaiah
Received on Wednesday, 22 July 2009 23:56:29 UTC

This archive was generated by hypermail 2.4.0 : Saturday, 9 October 2021 18:44:51 UTC