[HarfBuzz] I got hb/ft working but I don't know how

Eduardo Castineyra eduardo at brainstorm.es
Tue Oct 1 10:06:53 PDT 2013


Hi Khaled,

El 01/10/2013 18:26, Khaled Hosny escribió:
> On Tue, Oct 01, 2013 at 05:00:44PM +0200, Eduardo Castineyra wrote:
> FreeType does provide API to get raw font tables, namely
> FT_Load_Sfnt_Table().

Oh! Our understanding was these functions were deprecated, I will have a 
look.
>> 4) What is get_ft_library for? Should I be calling it instead of
>> FT_Init_FreeType?
> get_ft_library() is not public, so I guess you don’t need to (can’t
> even?) use it.

Our main concern is I don't know what would happen if, for instance, we 
call the shaper from two different threads, given that ft_library is 
static.

/* Thread-safe, lock-free, FT_Library */
static FT_Library ft_library;

Despite the "Thread-safe" comment, we have experienced a lot of problems 
when two threads are using the same FT_library. So I don't understand 
what the "Thread-safe" claim is based on.

Also, do most users rely on hb-ft? Or they usually make their own font 
parsers?

Thanks!



More information about the HarfBuzz mailing list