skip

How to install FontForge

From OFLB

(Redirected from FontForgeInstallation)
Jump to: navigation, search

This page is step by step guide to installing FontForge for beginners.

The first part covers installing FontForge's "official" releases.

The second part of this page explains how some FontForge users install the "source code" version of FontForge. Many people do this so they can use the very latest features, and have the very latest bug fixes. This version is updated almost daily. If you want to report a problem of FontForge, we recommend that you try reproducing your problem with the source code version - you may find your problem has already been fixed! We explain how to install FontForge from source code both for the first time, and how to update it too.

Contents

Official Releases

Please edit this page and explain how to install FontForge step by step for Ubuntu, Fedora, Mac OS X and Windows!

On the SourceForge Download page you will see a list of 7 versions of FontForge. These are for the various kinds of computers people use today, and their names are packed with technical details. This means they can seem a little cryptic, so here is our guide to them:

  • GNU/Linux on 32 bit PCs: fontforge-YYYYMMDD.i386.rpm
  • GNU/Linux on 64 bit PCs: fontforge-YYYYMMDD.x86_64.rpm
  • Windows with Cygwin installed: fontforge_cygwin-YYYYMMDD.tar.bz2
  • Intel Macs with Leopard: FontForge_intelmacX.5_x86-py25-YYYYMMDD.pkg.zip
  • G3, G4 or G5 Macs with Leopard: FontForge_macX.5_ppc-py25-YYYYMMDD.pkg.zip
  • Intel Macs with Tiger: FontForge_intelmacX.4_x86-py23-YYYYMMDD.pkg.zip
  • G3, G4 or G5 Macs with Tiger: FontForge_macX.4_py2.3-YYYYMMDD.pkg.zip

These examples include "YYYYMMDD" that will appear as numbers for the year, month and date of publication (eg, 20081103).

The FontForge manual contains instructions for installing these packages on GNU/Linux, Mac OS X and Windows. There is also an Unofficial Windows Version.

Mac OS X

Please edit this line with exact details on how to do each step

The best way to experience free software like FontForge is to run GNU/Linux on your Mac. When you use FontForge on Mac OS X, you make it much easier to move to GNU/Linux in the future.

0. Go to the Apple menu and run "Software Update" and make sure all the "Mac OS X Update" items are installed.

1. Insert the Mac OS X installation DVD and install X11: Browse the disc and scroll down to "Optional Installs" and open it. Keep clicking Continue until you get to the pane "Custom Install on Macintosh HD." Press the arrow beside "Applications so you get a list of them. Select X11 and keep pressing Continue.

2. Download and install the 'libraries' from http://downloads.sourceforge.net/sourceforge/fontforge/FFLibs-intelmac-20081207.pkg.zip

3. Download and install FontForge from http://downloads.sourceforge.net/fontforge/FontForge_intelmacX.5_x86-py25-20090224.pkg.zip

4. Create a text file in your home directory with this name (not the period at the start)

   .fonts.conf

And make it contain the following:

   <?xml version="1.0"?>
   <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
   <fontconfig>
           <dir>/System/Library/Fonts</dir>
           <dir>/Library/Fonts</dir>
           <dir>~/Library/Fonts</dir>
   </fontconfig>

5. Go to the Finder and find the FontForge application in /Applications, and drag it to your Dock.

6. Run run FontForge from the Dock.

Source Code

GNU/Linux

Install the required programs

The parts in the light blue boxes are commands that should be typed (copy and pasted) into your "Terminal" program.

When using Debian or Ubuntu:

   sudo aptitude update;
   sudo aptitude install libpng12-dev zlibc zlib1g-dev libtiff-dev \
   libungif4-dev libjpeg-dev libxml2-dev libuninameslist-dev \
   xorg-dev subversion cvs gettext git libpango1.0-dev \
   libcairo2-dev;

and enter your password when prompted.

When using Fedora or Red Hat:

   su;
   yum update;
   yum install libpng-devel zlib-devel libtiff-devel giflib-devel \
   libjpeg-devel libxml2-devel libuninameslist-devel cairo-devel \
   python-devel cvs git subversion mercurial pango-devel;
   yum groupinstall x-software-development development-tools;
   exit;

and enter the root password when prompted.

Download FontForge source code

First, use the 'change directory' command "cd" to ensure you are in your 'home directory' ("~"). Then make a "source code" folder with the 'make directory' command "mkdir" to keep things tidy. Then change to that directory.

   cd ~;
   mkdir src;
   cd src;

FontForge source code is kept in a "CVS" version control system operated by the SourceForge website. First, login to the SourceForge CVS server; hit the return key to enter a blank password when asked for one. Second, download the FontForge sourcecode:

   cvs -d:pserver:anonymous@fontforge.cvs.sourceforge.net:/cvsroot/fontforge login;
   cvs -d:pserver:anonymous@fontforge.cvs.sourceforge.net:/cvsroot/fontforge co fontforge;

Download other sourcecode

Using the CVS and the Subversion ("SVN") version control programs, download the other source code to enable all of FontForge's features: Freetype2 is a text rendering system used to draw fonts on screen, and libspiro is the Spiro drawing program that is integrated into FontForge.

   git clone git://git.sv.gnu.org/freetype/freetype2.git;
   git://git.sv.gnu.org/freetype/freetype2-demos.git;
   svn co http://libspiro.svn.sourceforge.net/svnroot/libspiro/;

If you live in a country without software-idea patents (such as a European country, but not the USA) you can make a small change to the freetype source code to enable FontForge's hinting features. If you live in a country with software idea patents, to legally use these features you should obtain a TrueType hinting patent license from Apple. Open this file:

   freetype2/include/freetype/config/ftoption.h

and change

   /* #define TT_CONFIG_OPTION_BYTECODE_INTERPRETER */

to

   #define TT_CONFIG_OPTION_BYTECODE_INTERPRETER

then save and close it.

Compile, install and run FontForge

These 3 commands change to the libspiro directory, configure and compile the program:

   cd ~/src/libspiro;
   ./configure;
   make;

To install programs you compile, you need root access. With some distributions, like Ubuntu, root access is available with the "sudo" command and your own password:

   sudo make install;

On other distributions, such as Fedora, that command may not work. If not, root access is available with the "su" command and the root password:

   su; make install; exit

Now configure, compile and install FontForge:

   cd ~/src/fontforge/;
   ./configure --enable-pyextension --enable-type3 --enable-pasteafter \
   --enable-tilepath --enable-double --enable-device-tables \
   --with-capslock-for-alt --with-freetype-bytecode \
   --with-freetype-src=../freetype2 --with-x --with-pango;
   make;  
   sudo make install;

or

   su; make install; exit

(on Fedora, su to become root and then run make install)

Finally, run FontForge:

   /usr/local/bin/fontforge;

Mac OS X

The procedure for installing FontForge from source code on Mac OS X is the same as for GNU/Linux, above, except that installing the depencies is different. If you install FontForge from source on Mac OS X successfully from scratch, please write up your steps here.

The official FontForge website has a page about installing FontForge on Mac OS X too.

Updating your source code

You don't have to do all this each time you want to update. Just run the following commands:

   cd ~/src/libspiro; make clean; svn up; ./configure; make; sudo make install;
   cd ~/src/freetype2; git pull;
   cd ~/src/fontforge; sudo make clean; cvs up -Cd;
   ./configure --enable-pyextension --enable-type3 --enable-pasteafter \
   --enable-tilepath --with-capslock-for-alt --with-freetype-bytecode \
   --with-freetype-src=../freetype2 --with-x;
   make; sudo make install;



We also publish other information about FontForge, including How to setup FontForge.