Hello Khaled!
> I’ve been using FreeType with Core Text fonts on Mac, and one of the
> issues I had is that Core Text does not provide an API to get face
> index from multi-font files (TTC, dfont, etc.) so I had to resort to
> some hacks to guess the face index[1], but this fails for at least
> one Apple-shipped font.
Looking at [1]: Why not referring to `face->face_index'? This gives
the current index of a multi-font file.
> I was wondering if there is a way or if it is possible to added a
> new way to create FT_Face with callback function(s) for returning
> individual font tables and other info that FreeType might need,
> similar to HarfBuzz’s hb_face_create_for_tables(), so that I can
> just hook it with the API for getting font tables and not have to
> worry about face index.
It's not clear to me how this should work. Can you give some
pseudo-code?
Werner
_______________________________________________
Freetype mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/freetype