freetype
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ft] Loading FT_Face without having access to the font as whole


From: Werner LEMBERG
Subject: Re: [ft] Loading FT_Face without having access to the font as whole
Date: Sun, 21 Jul 2013 12:24:41 +0200 (CEST)

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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]