[HarfBuzz] Building from git on OS X with Homebrew

Jiang Jiang gzjjgod at gmail.com
Mon Mar 24 15:18:32 PDT 2014


On Mon, Mar 24, 2014 at 10:36 PM, Jiang Jiang <gzjjgod at gmail.com> wrote:
> However, I am also trying with an example where I simply create the
> face from a CGFontRef like this: https://gist.github.com/jjgod/9749641

I have to explain that I do intend to use the OT shaper, but I just
want to have the font table data loaded from a CGFontRef instead.

I do get some valid glyph ids when I force it to use coretext_aat
shaper (but not coretext shaper, what's the difference?) But when I
force it to use ot shaper I got nothing but the bounding boxes.
(coretext_aat however, get all 0 for the bounding boxes, which makes
it even weirder.)

I haven't been working on this for a while so I'm really curious how
these pieces are supposed to fit (for instance I saw tests call
hb_ft_set_font_funcs(), but I don't want to depend or use any FreeType
APIs on Mac, is that possible?). Would be nice if someone can
enlighten me.

- Jiang


More information about the HarfBuzz mailing list