[whatwg] Canvas: Fonts in workers
ian at hixie.ch
Thu Feb 21 08:45:12 PST 2013
On Thu, 21 Feb 2013, Anne van Kesteren wrote:
> On Thu, Feb 21, 2013 at 5:59 AM, Ian Hickson <ian at hixie.ch> wrote:
> > On Wed, 20 Feb 2013, Jonas Sicking wrote:
> >> We could possibly still use the the FontLoader interface if we do the
> >> following: * FontLoader needs to drop the dependency on
> >> CSSFontFaceRule (or at least make the dependency optional and not
> >> available in workers). * We'll expose a global FontLoader object per
> >> worker scope. * The worker can't use any downloaded fonts other than
> >> the ones loaded through the global FontLoader for that scope.
> > My expectation was that this is how FontLoader would work for workers.
> > (We can't rely on what fonts are in the Document since that's shared
> > state, and workers try to avoid shared state as a design principle.)
> Sure, but FontLoader is tightly coupled with the document since it does
> not actually supply URLs for the fonts itself, it relies on @font-face
> for that. It just indicates whether the font is loaded or that it should
> be loaded.
Then we should fix that. :-)
Ian Hickson U+1047E )\._.,--....,'``. fL
http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,.
Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.'
More information about the whatwg