foliojs / fontkit

An advanced font engine for Node and the browser
1.44k stars 210 forks source link

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

Open PratikDarak opened 6 months ago

PratikDarak commented 6 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?