W3C home > Mailing lists > Public > www-style@w3.org > June 2014

Re: [css-font-loading] FontFace objects in multiple FontFaceSets

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Mon, 23 Jun 2014 22:59:00 -0700
Message-ID: <CAAWBYDBL4TRUGXLzq+aYDCdqe8TKSR7gGOGf5fiusVTJXCE1JQ@mail.gmail.com>
To: Cameron McCormack <cam@mcc.id.au>
Cc: "www-style@w3.org" <www-style@w3.org>
On Mon, Jun 23, 2014 at 6:02 PM, Cameron McCormack <cam@mcc.id.au> wrote:
> Are FontFace objects allowed to be inserted into multiple FontFaceSets?
>
>   var face = new FontFace(...);
>   document.fonts.add(face);
>   otherDocument.fonts.add(face);
>
> I think it would be simpler to disallow this.  (This would also handle
> preventing CSS-connected FontFace objects from being added to multiple
> FontFaceSets.)

Is this problematic for some reason?  I'd prefer to allow it if
possible.  For example, it would make it easier to transfer one
FontFaceSet into another; if multiple adds aren't allowed, you have to
first delete each entry from the first FontFaceSet before adding it to
the second.

~TJ
Received on Tuesday, 24 June 2014 05:59:49 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:14:41 UTC