W3C home > Mailing lists > Public > www-style@w3.org > September 2010

Re: Shouldn't fonts embedded through @font-face be available in <canvas>?

From: Robert O'Callahan <robert@ocallahan.org>
Date: Mon, 27 Sep 2010 08:11:19 +1300
Message-ID: <AANLkTinr=WqW7TvOv02tOSDqAj700r=hHZ9=JzexbGQ5@mail.gmail.com>
To: list.adam@twardoch.com
Cc: Sergey Malkin <sergeym@microsoft.com>, www-font <www-font@w3.org>, www-style <www-style@w3.org>
This problem has been discussed before on the WHATWG list. It's tricky
because in some browsers (e.g. Gecko) we only start loading the font after
you try to draw text that needs it. One possible solution: after drawing
canvas text with a font that hasn't finished loading, when the font finishes
loading fire an event at the canvas, e.g. "fontload".

"Now the Bereans were of more noble character than the Thessalonians, for
they received the message with great eagerness and examined the Scriptures
every day to see if what Paul said was true." [Acts 17:11]
Received on Sunday, 26 September 2010 19:34:41 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:49:48 UTC