[HarfBuzz] Building from git on OS X with Homebrew

Jiang Jiang gzjjgod at gmail.com
Mon Mar 24 14:12:33 PDT 2014

Hi Behdad,

On Mon, Mar 24, 2014 at 8:00 PM, Behdad Esfahbod <behdad at behdad.org> wrote:
> On 14-03-24 01:32 AM, James Clark wrote:
>> I had another go at building harfbuzz from git on Mac OS X.  Using Homebrew,
>> together with gtk-doc's now being optional, made it an order of magnitude
>> easier than last time (glib and freetype are so that hb-shape builds):
> A while ago I put MacPorts instructions on the harfbuzz homepage.  In particular:
> To start from git, do this:
> sudo port install autoconf automake libtool pkgconfig ragel gtk-doc
> sudo port install freetype glib2 cairo
> If you can tell me the brew equivalent of those I'll add to the page.  Like:
> brew install autoconf automake libtool pkg-config ragel gtk-doc??
> brew install freetype glib cairo?
>>     # Install Xcode command line tools
>>     xcode-select --install
>>     # Install homebrew
>>     ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
>>     brew doctor
>>     # Do what brew doctor says (I had to move some stuff in
>>     /Library/Frameworks out of the way)
>>     brew install ragel
>>     brew install automake
>>     brew install pkg-config
>>     brew install glib
>>     brew install libtool
>>     brew install freetype
>>     # Get harfbuzz
>>     git clone https://github.com/behdad/harfbuzz.git
>>     cd harfbuzz
>>     ./autogen.sh
>>     make
>>     # Install Xcode command line tools

I followed this instruction.

Build configuration:

Unicode callbacks (you want at least one):

Glib: true
ICU: false
UCDN: false

Font callbacks (the more the better):

FreeType: true

Tools used for command-line utilities:

Cairo: false

Additional shapers (the more the better):

Graphite2: false

Platform shapers (not normally needed):

CoreText: false
Uniscribe: false

Other features:

Documentation: false
GObject bindings: false
Introspection: false

after make, I tried to run src/test:

./src/test /Library/Fonts/Verdana.ttf
Opened font file /Library/Fonts/Verdana.ttf: 186188 bytes long
cluster 0 glyph 0x0 at (0,0)+(2048,0)
cluster 0 glyph 0x0 at (0,0)+(2048,0)
cluster 6 glyph 0x0 at (0,0)+(2048,0)
cluster 6 glyph 0x0 at (0,0)+(2048,0)
cluster 12 glyph 0x0 at (0,0)+(2048,0)

Am I missing something or why are the glyphs always 0?

- Jiang

More information about the HarfBuzz mailing list