[HarfBuzz] Building from git on OS X with Homebrew

2014-03-24 Thread James Clark
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): # Install Xcode command line tools xcode-select --install > # Install home

Re: [HarfBuzz] Building from git on OS X with Homebrew

2014-03-24 Thread Werner LEMBERG
> brew install glib >> brew install libtool >> brew install freetype >> # Get harfbuzz >> git clone https://github.com/behdad/harfbuzz.git >> cd harfbuzz >> ./autogen.sh >> make After that you should recompile FreeType again since FreeType and HarfBuzz are mutually dependent (assuming that homebr

Re: [HarfBuzz] Building from git on OS X with Homebrew

2014-03-24 Thread Werner LEMBERG
> After that you should recompile FreeType again [...] Uh, oh, I mean either `compile again' or `recompile' :-) Werner ___ HarfBuzz mailing list HarfBuzz@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/harfbuzz

Re: [HarfBuzz] Building from git on OS X with Homebrew

2014-03-24 Thread Rolf Langenhuijzen
Yes, I tried this too and worked fine (I forgot the double Freetype compilation). I need to find some time, but will do a separate formula for the brew collection so it's easier to install even for others (and just run brew install harfbuzz-git or something, including extra options for the doc

Re: [HarfBuzz] Building from git on OS X with Homebrew

2014-03-24 Thread Behdad Esfahbod
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 in

Re: [HarfBuzz] Building from git on OS X with Homebrew

2014-03-24 Thread Rolf Langenhuijzen
You have to install one package at a time, and have to know the formula names (https://github.com/mbcoguno/homebrew-core/tree/master/Library/Formula) So like James wrote (and first install Homebrew which depends on Xcode cmd line tools); I’d point to http://brew.sh for the basic information. Som

Re: [HarfBuzz] Building from git on OS X with Homebrew

2014-03-24 Thread Rolf Langenhuijzen
oh crap, in addition you would run "brew install freetype” again after all this (below) because of the chicken-and-egg problem Werner posted about before. Rolf On 24 Mar 2014, at 22:00, Rolf Langenhuijzen wrote: > You have to install one package at a time, and have to know the formula names

Re: [HarfBuzz] Building from git on OS X with Homebrew

2014-03-24 Thread Rolf Langenhuijzen
OK, one more note; I will try to setup OSX Mavericks on a VirtualBox setup later this week to test this install from scratch on a clean system. There were some issues in the past installing OSX on VirtualBox, but I think those issues are over (at least when using latest OSX Mavericks, latest Vi

Re: [HarfBuzz] Building from git on OS X with Homebrew

2014-03-24 Thread Behdad Esfahbod
On 14-03-24 06:16 AM, Rolf Langenhuijzen wrote: > I was wondering if --with-icu has any advantages/disadvantages? I haven't used > it on osx or ubuntu, but I'm using very basic stuff of harfbuzz. It will build harfbuzz-icu.so, which has glue for integrating with ICU. -- behdad http://behdad.org

Re: [HarfBuzz] Building from git on OS X with Homebrew

2014-03-24 Thread Jiang Jiang
Hi Behdad, On Mon, Mar 24, 2014 at 8:00 PM, Behdad Esfahbod 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

Re: [HarfBuzz] Building from git on OS X with Homebrew

2014-03-24 Thread Jiang Jiang
On Mon, Mar 24, 2014 at 10:12 PM, Jiang Jiang wrote: > Am I missing something or why are the glyphs always 0? I just realized that src/test.cc adds some UTF-8 text that might not be supported by the font given. I changed the text to some ASCII text and it seemed to work. However, I am also tryin

Re: [HarfBuzz] Building from git on OS X with Homebrew

2014-03-24 Thread Jiang Jiang
On Mon, Mar 24, 2014 at 10:36 PM, Jiang Jiang 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

Re: [HarfBuzz] Building from git on OS X with Homebrew

2014-03-24 Thread James Clark
On Tue, Mar 25, 2014 at 2:00 AM, Behdad Esfahbod wrote: > > A while ago I put MacPorts instructions on the harfbuzz homepage. It might be helpful also to put those instructions in an INSTALL file in the repository. I suspect some people (like me!) in their eagerness to get started might read t

Re: [HarfBuzz] Building from git on OS X with Homebrew

2014-03-25 Thread Jiang Jiang
On Mon, Mar 24, 2014 at 11:18 PM, Jiang Jiang wrote: > 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. In case anyone wondering (doesn't seemed to see any interests in this scenario), I managed to get it worki

Re: [HarfBuzz] Building from git on OS X with Homebrew

2014-03-25 Thread Behdad Esfahbod
On 14-03-25 03:08 PM, Jiang Jiang wrote: > On Mon, Mar 24, 2014 at 11:18 PM, Jiang Jiang wrote: >> 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. > > In case anyone wondering (doesn't seemed to see any inter

Re: [HarfBuzz] Building from git on OS X with Homebrew

2014-03-25 Thread Jiang Jiang
On Tue, Mar 25, 2014 at 11:14 PM, Behdad Esfahbod wrote: >> In case anyone wondering (doesn't seemed to see any interests in this >> scenario), I managed to get it working by implementing a set of Core >> Text font_funcs for HarfBuzz: >> https://github.com/jjgod/harfbuzz/commit/08ac195ed88c157eaca

Re: [HarfBuzz] Building from git on OS X with Homebrew

2014-03-25 Thread Behdad Esfahbod
On 14-03-25 03:17 PM, Jiang Jiang wrote: > On Tue, Mar 25, 2014 at 11:14 PM, Behdad Esfahbod wrote: >>> In case anyone wondering (doesn't seemed to see any interests in this >>> scenario), I managed to get it working by implementing a set of Core >>> Text font_funcs for HarfBuzz: >>> https://githu

Re: [HarfBuzz] Building from git on OS X with Homebrew

2014-03-25 Thread Konstantin Ritt
That's a great improvement, thanks Jiang. Even more... it clearly shows the truncation issue I was describing several times already ( http://lists.freedesktop.org/archives/harfbuzz/2014-February/004149.html). I'll add some comments to https://github.com/jjgod/harfbuzz/commit/08ac195ed88c157eaca82d4

Re: [HarfBuzz] Building from git on OS X with Homebrew

2014-03-26 Thread Jiang Jiang
On Wed, Mar 26, 2014 at 5:56 AM, Konstantin Ritt wrote: > That's a great improvement, thanks Jiang. > Even more... it clearly shows the truncation issue I was describing several > times already > (http://lists.freedesktop.org/archives/harfbuzz/2014-February/004149.html). > I'll add some comments t

Re: [HarfBuzz] Building from git on OS X with Homebrew

2014-06-03 Thread Vincent Isambart
What is the current status about merging those CoreText changes in? On Wednesday, March 26, 2014 at 16:26, Jiang Jiang wrote: > On Wed, Mar 26, 2014 at 5:56 AM, Konstantin Ritt (mailto:ritt...@gmail.com)> wrote: > > That's a great improvement, thanks Jiang. > > Even more... it clearly shows th

Re: [HarfBuzz] Building from git on OS X with Homebrew

2014-06-19 Thread Behdad Esfahbod
-ETOOBUSY :(. On 14-06-03 05:51 AM, Vincent Isambart wrote: > What is the current status about merging those CoreText changes in? > > > On Wednesday, March 26, 2014 at 16:26, Jiang Jiang wrote: > >> On Wed, Mar 26, 2014 at 5:56 AM, Konstantin Ritt > (mailto:ritt...@gmail.com)> wrote: >>> That'