foliojs / fontkit

An advanced font engine for Node and the browser
1.5k stars 223 forks source link

How to extract individual TTF from a font collection (TTC) file? #326

Open PratikDarak opened 11 months ago

PratikDarak commented 11 months ago

We have some open source fonts which are embedded as part of a font collection (TTC) file. I tried to individually extract the TTF from the collection using Array buffer but founf out that the array buffer is for the entire collection file and not for the individual TTFs. Can we please update the Array buffer in individual font files to have the buffer of the relevant font?