[css-font-loading] how/when do FontFace objects end up in a FontFaceSet

Sort of along the line of Jonas's question, it's unclear to me precisely how/when
newly created FontFace objects are added to the appropriate
FontFaceSet (e.g. document.fonts).  Is the intent that they are
automatically added at construction? If so, then the spec needs to
state that clearly. If not, then it should state that an explicit add
is required.

The spec *really* needs references to the Promises API.  How about a
normative reference to Dominec's spec [1] and an informative reference
to the HTML5Rocks article on Promises [2] for now?  Something is
better than nothing. I realize the spec is still in flux within the
ES6 group.

It seems odd that FontFace.load() has a return type of void but
FontFaceSet.load returns a Promise. Wouldn't it be more consistent to
have them both return a promise?

Regards,

John

Dominic's Promises spec (written in es6-ese)
[1] https://github.com/domenic/promises-unwrapping

Article on Promises
[2] http://www.html5rocks.com/en/tutorials/es6/promises/

Received on Friday, 28 February 2014 08:20:58 UTC