Woff 2 font with font collection inside

Please try to keep all the discussions in the main forums on topic! If you have anything else, related to fonts, you want to share, please post it here!
Post Reply
Black_Joker
Posts: 6
Joined: Tue May 04, 2021 7:53 am

Woff 2 font with font collection inside

Post 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.
Black_Joker
Posts: 6
Joined: Tue May 04, 2021 7:53 am

Re: Woff 2 font with font collection inside

Post by Black_Joker »

Anyone? More than 120 views and noone has such fonts or at least know where they could be obtained?
Bhikkhu Pesala
Top Typographer
Top Typographer
Posts: 9869
Joined: Tue Oct 29, 2002 5:28 am
Location: Seven Kings, London UK
Contact:

Re: Woff 2 font with font collection inside

Post 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.
My FontsReviews: MainTypeFont CreatorHelpFC15 + MT12.0 @ Win 10 64-bit build 19045.2486
Black_Joker
Posts: 6
Joined: Tue May 04, 2021 7:53 am

Re: Woff 2 font with font collection inside

Post 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?
lunde
Posts: 3
Joined: Tue May 18, 2021 2:00 am
Location: Earth
Contact:

Re: Woff 2 font with font collection inside

Post 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.
Black_Joker
Posts: 6
Joined: Tue May 04, 2021 7:53 am

Re: Woff 2 font with font collection inside

Post by Black_Joker »

I tested with 2 font collections I have and both failed.

Can you please say what I am doing wrong here?
Attachments
Untitled.png
Untitled.png (9.16 KiB) Viewed 12520 times
lunde
Posts: 3
Joined: Tue May 18, 2021 2:00 am
Location: Earth
Contact:

Re: Woff 2 font with font collection inside

Post 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.
Black_Joker
Posts: 6
Joined: Tue May 04, 2021 7:53 am

Re: Woff 2 font with font collection inside

Post 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.
Black_Joker
Posts: 6
Joined: Tue May 04, 2021 7:53 am

Re: Woff 2 font with font collection inside

Post by Black_Joker »

Thanls a lot!!! Will test my parser with these files.
Post Reply