[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: |
Khaled Hosny |
Subject: |
Re: [ft] Loading FT_Face without having access to the font as whole |
Date: |
Sat, 27 Jul 2013 11:34:44 +0200 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Sat, Jul 27, 2013 at 10:41:40AM +0200, Werner LEMBERG wrote:
> > HarfBuzz has hb_face_create_for_tables() that takes a callback
> > function and a pointer, the callback functions is called with the
> > table tag and the pointer and returns a buffer, whenever HarfBuzz
> > wants to access a font table. For my case the pointer would be a
> > CTFont and the callback function would call CTFontCopyTable() on it.
>
> You can't compare an `hb_face' structure with `FT_Face'; the
> functionality is completely different. If I understand you correctly,
> you want to create an FT_Face from various single tables, right? Then
> the approach from LibreOffice seems the correct one to me
> (https://gerrit.libreoffice.org/gitweb?p=core.git;a=blob;f=vcl/coretext/salgdi2.cxx#l532).
I think that is good enough for my purposes, thanks.
Regards,
Khaled