Apple Font Tools cannot install in Macbook Pro El Capitan

I downloaded OS Font Tools, release 4 beta 1 (osxfonttools.dmg) and try to install in Macbook Pro El Capitan, but installation failed:

enter image description here

enter image description here

anyone knows the reason?


Solution 1:

Here is how I did it. Get it downloaded from apple (here: https://developer.apple.com/downloads/?q=font ) and run these.

pkgutil --expand OS\ X\ Font\ Tools.pkg tmp
cd tmp
cd fontTools.pkg
mv Payload Payload.gz
gunzip Payload
tar -xvf Payload

Apologies if I forgot any parts but that is basically it.

Solution 2:

@xaphod's answer wasn't quite comprehensive, so I wrote down all the commands I used to get this working. Here is how I got it working for the next person who needs it (also in a gist if you're into that):

Mount the font tools dmg as a volume on your Mac

hdiutil attach ~/Downloads/osxfonttools.dmg

Navigate into the volume and copy the main .pkg file somewhere locally so you can manipulate it

cd /Volumes/OS\ X\ Font\ Tools/
pkgutil --expand OS\ X\ Font\ Tools.pkg ~/fontTools && cd ~/fontTools

If you ls, here's what's in the file

Distribution      fontTools.pkg     keyboardTools.pkg
Resources         fonttoolbox.pkg

We'll be going into the fontTools.pkg first, and then going into the fontToolbox.pkg

The fontTools.pkg includes the actual executables that we want to use to manipulate fonts navigate into the directory and use gunzip + tar to get at the files

cd fontTools.pkg 
mv Payload Payload.gz && gunzip Payload && tar -xvf Payload

If that command succeeded, you'll see the following output:

x .
x ./._.DS_Store
x ./ftxanalyzer
x ./ftxdiff
x ./ftxdumperfuser
x ./ftxdumpfond
x ./ftxenhancer
x ./ftxfissioner
x ./ftxfusefond
x ./ftxglyphadder
x ./ftxinstalledfonts
x ./ftxmakettc
x ./ftxruler
x ./ftxsplitter
x ./ftxstamper
x ./ftxsummarizer
x ./ftxvalidator

Additionally, all of those ftx* files will be in the current directory.

Move the executables to your local/bin so that they're in your bash path

mv ftx* /usr/local/bin

At this point, you can successfully call any of the executables in your bash path, but they'll fail because they rely on FontToolbox.framework to be in /Library/Frameworks

Navigate into the fonttoolbox.pkg directory and get at the payload like we did earlier

cd ../fonttoolbox.pkg
mv Payload Payload.gz && gunzip Payload && tar -xvf Payload

This outputs a FontToolbox.framework folder in that directory. Move that framework to the appropriate folder in /Library. You need to sudo this command because of restrictions on the system level /Library folder

sudo mv FontToolbox.framework /Library/Frameworks/FontToolbox.framework

If you want a more comprehensive start-to-finish guide, I wrote a blog post about this on medium.