[HarfBuzz] lack of documentation drives me crazy

Werner LEMBERG wl at gnu.org
Sun Jun 16 06:05:54 PDT 2013


> Lemme try to answer some of your questions from my very limited
> knowledge until Behdad responds.

Thanks!  I think my main problem is that I've never used Cairo.
Otherwise, a lot of concepts would be immediately clear to me, I
believe.

>> For example, what's the difference
>> between
>>
>>   hb_ft_font_create
>>   hb_ft_face_create
> 
> A hb_ft_face is internal to hb_ft_font and created automatically. It
> is needed by the font object to query font metrics and read sfnt
> tables. I don't know why you would create one yourself.

Actually, as the sample code from my previous e-mail shows, I really
need only hb_ft_face_create :-)

> hb_font_create and hb_face_create create "abstract" objects.  If you
> create them like this, you need to implement and assign a bunch of
> callbacks to them to make them work.  [...]

Yeah, I've realized this meanwhile.  Fortunately, I only need to work
with FreeType, so I don't need such hassles.

> Check this out:
> http://lists.freedesktop.org/archives/harfbuzz/2009-August/000359.html

Thanks!  I've tried to find this e-mail, but somehow I failed.


    Werner



More information about the HarfBuzz mailing list