Re: [IDEA] Facilities to extract TT fonts from TTC font collections

Werner LEMBERG <[email protected]>
Newsgroups gmane.comp.fonts.freetype.devel
Message-ID <[email protected]>
> I recently had to extract a TrueType font from a TTC font collection
> as part of fixing bugs in the podofo library[1].

In general, FreeType is not the right tool for such operations.
FreeType is a *rendering* library that provides a thin API for
extracting SFNT tables, mainly the ones FreeType isn't parsing by
itself.  As Behdad mentioned, the `fonttools` package should help you
with your task.

> For example, a special tag TTAG_tdir
> could be defined to access the raw Table Directory data with
> FT_Load_Sfnt_Table, like the following:
> 
> FT_ULong size = 0;
> FT_Load_Sfnt_Table(face, TTAG_tdir, 0, NULL, &size);

Please file a feature request at

  https://gitlab.freedesktop.org/freetype/freetype/-/issues/


     Werner
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.