Re: Intent to implement: CSS Font Loading API

2014-06-24 Thread Jonas Sicking
On Tue, Jun 24, 2014 at 12:05 AM, Cameron McCormack wrote: > On 24/06/14 16:30, Jonas Sicking wrote: >> >> I don't understand why anyone would want to key gets and sets using >> FontFace instances. I.e. why would you want to ever call >> fontFaceSet.has(myFontFace). That returning false doesn't re

Re: Intent to implement: CSS Font Loading API

2014-06-24 Thread Cameron McCormack
On 24/06/14 17:21, Anne van Kesteren wrote: That part of IDL is wrong. That needs to be fixed to use Symbol.iterator. Yep, aware of that. And ideally an easier way to define an iterator than having to define the entire thing. E.g. for something like FormData all you need is iterating over Arr

Re: Intent to implement: CSS Font Loading API

2014-06-24 Thread Anne van Kesteren
On Tue, Jun 24, 2014 at 8:59 AM, Cameron McCormack wrote: > Yes hence the "something similar". :-) Was just easiest for working with > while implementing. Making the object iterable seems like the right thing > to do, but our bindings generation scripts don't handle "iterator" in IDL > yet. Tha

Re: Intent to implement: CSS Font Loading API

2014-06-24 Thread Boris Zbarsky
On 6/24/14, 2:59 AM, Cameron McCormack wrote: Yes hence the "something similar". :-) Was just easiest for working with while implementing. Making the object iterable seems like the right thing to do, but our bindings generation scripts don't handle "iterator" in IDL yet. That's at least in pa

Re: Intent to implement: CSS Font Loading API

2014-06-24 Thread Cameron McCormack
On 24/06/14 16:30, Jonas Sicking wrote: I don't understand why anyone would want to key gets and sets using FontFace instances. I.e. why would you want to ever call fontFaceSet.has(myFontFace). That returning false doesn't really tell you anything about what fonts are or are not loaded. It tell

Re: Intent to implement: CSS Font Loading API

2014-06-23 Thread Cameron McCormack
On 24/06/14 16:35, Anne van Kesteren wrote: No, no more indexed getters. You should know! Yes hence the "something similar". :-) Was just easiest for working with while implementing. Making the object iterable seems like the right thing to do, but our bindings generation scripts don't handl

Re: Intent to implement: CSS Font Loading API

2014-06-23 Thread Anne van Kesteren
On Tue, Jun 24, 2014 at 2:02 AM, Cameron McCormack wrote: > No. There's a note in the spec that says [SetClass] will be removed in > favour of members on the interface that feel like a Set, but there's nothing > concrete in there yet. I'm proceeding with something simple for the moment > (add, h

Re: Intent to implement: CSS Font Loading API

2014-06-23 Thread Jonas Sicking
On Mon, Jun 23, 2014 at 5:02 PM, Cameron McCormack wrote: > On 24/06/14 06:30, Jonas Sicking wrote: >> >> Has the [MapClass] issue been resolved yet? > > No. There's a note in the spec that says [SetClass] will be removed in > favour of members on the interface that feel like a Set, but there's n

Re: Intent to implement: CSS Font Loading API

2014-06-23 Thread Cameron McCormack
On 24/06/14 06:30, Jonas Sicking wrote: Has the [MapClass] issue been resolved yet? No. There's a note in the spec that says [SetClass] will be removed in favour of members on the interface that feel like a Set, but there's nothing concrete in there yet. I'm proceeding with something simple

Re: Intent to implement: CSS Font Loading API

2014-06-23 Thread Jonas Sicking
Has the [MapClass] issue been resolved yet? / Jonas On Fri, Jun 20, 2014 at 11:47 PM, Cameron McCormack wrote: > Summary: The CSS Font Loading API provides a mechanism for authors to load a > font from the network that can then be used from the font-family property. > This allows control over wh

Re: Intent to implement: CSS Font Loading API

2014-06-23 Thread Jet Villegas
Yes, please! Cross-posting to B2G-Internal as we've been discussing font loading hacks on a separate thread re: icon fonts. This font loading API should help. Thanks, --Jet - Original Message - From: "Cameron McCormack" To: dev-platform@lists.mozilla.org Sent: Friday, June 20, 2014 11