Page 1 of 1

Woff 2 font with font collection inside

Posted: Tue May 04, 2021 8:01 am
by Black_Joker
Hey. Maybe it`s a little bit offtopic here, but I have no idea where is the rigth place for it.

Currently I am working on my own font parser.
WOFF2 is one of the formats I want to support.
In specs says WOFF2 supports font collections, but I cannot find such fonts.
Simply no info in google about such font files.

So, I came here to ask someone to help me with it and provide at least few such files for testing purposes.
Please, help me with my issue.

Re: Woff 2 font with font collection inside

Posted: Mon May 10, 2021 11:15 am
by Black_Joker
Anyone? More than 120 views and noone has such fonts or at least know where they could be obtained?

Re: Woff 2 font with font collection inside

Posted: Mon May 10, 2021 12:33 pm
by Bhikkhu Pesala
The lack of replies indicates that no one uses type collections for WOFF fonts. I don't think FontCreator can create them for regular TTF or OTF fonts. FontCreator simply extracts the individual fonts from a collection on opening it.

Re: Woff 2 font with font collection inside

Posted: Tue May 11, 2021 10:15 am
by Black_Joker
Yeah, I already understood that.
I didnt find any converters (online/offline) which could convert TTC (true type collection) to Woff2.
And this is quite strange, because specs says that font collections is supported.
Is this unclaimed feature?

Re: Woff 2 font with font collection inside

Posted: Tue May 18, 2021 2:14 am
by lunde
The https://github.com/google/woff2 tools by Google have the ability to convert an OpenType Collection into a WOFF2 Collection and vice-versa. The only quirk that I found is that when you execute woff2_decompress to convert a WOFF2 Collection back into an OpenType Collection, its filename extension is ttf, not ttc. I was impressed.

Re: Woff 2 font with font collection inside

Posted: Mon May 24, 2021 8:34 pm
by Black_Joker
I tested with 2 font collections I have and both failed.

Can you please say what I am doing wrong here?

Re: Woff 2 font with font collection inside

Posted: Fri May 28, 2021 2:38 pm
by lunde
While it took 25 minutes on my MacBook Air (2019 with 16GB of memory), I successfully converted the 400MB 216-font Source Han / Noto CJK Ultra OTC into a WOFF2 Collection. My only guess is that you are facing a memory-related issue. What is the footprint of ASANA.ttc? If it is large, you may try the smallest TTC you can find.

Re: Woff 2 font with font collection inside

Posted: Sat May 29, 2021 10:09 am
by Black_Joker
@lunde
May be it will be easier if you share your woff2 fonts converted from TTC files somewhere? Dropbox, One Drive, etc.

Re: Woff 2 font with font collection inside

Posted: Sat May 29, 2021 12:52 pm
by lunde

Re: Woff 2 font with font collection inside

Posted: Mon May 31, 2021 6:35 pm
by Black_Joker
Thanls a lot!!! Will test my parser with these files.