Re: canvas text: web fonts

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.


Right.


> 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).


Yep.


>  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.


Right.

Rob
-- 
"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
53:5-6]

Received on Wednesday, 22 July 2009 23:56:29 UTC