FontForge install procedures
for cygwin under MS Windows

Installing from a pre-built package

Before you install

You must ensure that you have cygwin installed on your system. Cygwin is free. (cygwin makes MS Windows look enough like unix to allow fontforge to run there). Getting all the bits of cygwin seems to be the hardest part of installing fontforge -- probably because it is the least expected part.

Alternatives to cygwin.

There are now alternatives to cygwin. Instead of downloading cygwin you can install one of the virtual machines (or something similar) which run linux, and then install fontforge from a linux package.

Obtaining one of my pre-built packages

I post a cygwin install package on sourceforge's file release system. There's a certain amount of pother involved in using the file release system, but you get the file eventually.

Installing

I have no idea where your browser put the package you have just downloaded. This is unfortunate as I can't tell you exactly what to do next. But find the package (often it's on the desktop) and then move it into C:\cygwin\home\<username>. (where <username> is whatever name cygwin gave you)

Notes

Caveat: cygwin has a different approach to the file system than Windows. A filename like C:\windows\fonts\arial.ttf will be called /cygdrive/c/windows/fonts/arial.ttf under cygwin (backslashes are replaced by slashes, and the initial drive "C:" becomes "/cygdrive/c".

Similarly a cygwin filename "/home/<username>/myfont.ttf" becomes "C:\cygwin\home\<username>\myfont.ttf"

Caveat: Do NOT try to install a font by using fontforge to write the font directly to the Windows\Fonts directory. This doesn't work. Windows needs to do some magic when installing a font that it can't do if fontforge writes directly there. Instead have fontforge create the font somewhere else and then use Windows' own drag & drop technique to move the font from there into Windows\Fonts.


Before you build (on MS/Windows)

You must download the cygwin environment. You will need

Caveat: cygwin has a different approach to the file system than Windows. A filename like C:\windows\fonts\arial.ttf will be called /cygdrive/c/windows/fonts/arial.ttf under cygwin (backslashes are replaced by slashes, and the initial drive "C:" becomes "/cygdrive/c"

Having done that you should now be ready to build. Open a cygwin terminal window and be prepared to type commands in it.

Building and installing from source

Obtaining a source distribution

There are two basic ways to obtain a source distribution. One is by downloading an entire source tree from the web, and the other is by using the cvs utility to maintain a source tree on your machine which will be as up to date as possible. The former solution provides more stability, the latter provides access to cutting edge bugs.

tarball

Sourceforge's file release system will contain a tarball (a file with the extension for .tar.bz2).

After you have downloaded one of these packages, either copy the tarball to where you are, or move to the directory containing the tarball (I can't provide explicit instructions here, because I don't know where your browser put the file) and type (The "$" or "#" are example prompts from the computer. Do not type them yourself):

$ bunzip2 fontforge*.tar.bz2
$ tar xf fontforge*.tar
$ cd fontforge-*

from the cvs tree

cvs is a nifty set of utilities which allows concurrent access to a source tree by many users. To set up your own (local) copy of the cvs tree (including documentation), create a new directory, cd into it and type the following (when it asks for a password, just hit return):

$ cvs -d:pserver:anonymous@cvs1.sourceforge.net:/cvsroot/fontforge login
CVS password:
$ cvs -d:pserver:anonymous@cvs1.sourceforge.net:/cvsroot/fontforge checkout fontforge
$ cd fontforge

Once you have established a directory you may update it to obtain the most recent version of the source by typing:

$ cd fontforge
$ cvs -d:pserver:anonymous@cvs1.sourceforge.net:/cvsroot/fontforge login
CVS password:
$ cvs -d:pserver:anonymous@cvs1.sourceforge.net:/cvsroot/fontforge update

You can also browse the CVS tree online. Or see sourceforge's description for more information (their information is out of date, the correct server is cvs1.sf.net not cvs.sf.net), or read the CVS manual.

Building & installing it

Now you have the source installed on your system and you should be positioned at the top directory of that tree. You need to configure your package (this is a little program that figures out how to use your system), and then build it:

$ ./configure
$ make

Having done this you will probably want to install what you have built. This should be done as root:

$ su
password: ******
# make install

On the mac the process is slightly different:

$ sudo make install
password: ******

More complicated installs

The configure script allows you to turn off and on various features of fontforge that might not be appropriate for your system. Type

$ configure --help

for a complete list of options. Some of the most useful are described below.

Building fontforge without X

If you don't want to install X11 on your system, you can use fontforge as a command line tool which can execute scripts to manipulate fonts. FontForge's scripting language is described in detail in the section on scripting.

$ configure --without-x

Building fontforge to edit type3 fonts

If you do want to edit PostScript type3 fonts, you can configure fontforge to give you access to more drawing modes than are generally available in fonts.

$ configure --enable-type3

Building fontforge to edit device tables

If you do want to create device tables (which allow you to fix up kerning data at a specific pixel size) in OpenType fonts

$ configure --enable-devicetables

Installing FontForge somewhere other than /usr/local

If you want to install fontforge in a different directory (say in /usr/bin)

$ configure --prefix=/usr

Installing documentation from the cvs tree

If you have a copy of the cvs tree on your system then you should be able to type

# make install_docs

Again you will probably need to be root to do this install too. Use either "su" or "sudo" as appropriate for your system (see above).

Dependencies (external libraries/helper programs)

If one of the following libraries is missing then fontforge will not start and will not give any error message.

If you want to edit CID keyed fonts you need these character set descriptions. (These were last updated 22-Dec-2004)

You might want this addition to FontForge's built in character set encodings. Use FontForge's Encoding->Load Encoding command to add these encodings to the Encoding Menu.

With the appropriate libraries, FontForge can import png, tiff, and gif images to act as character backgrounds for tracing purposes (FontForge can import bmp and xbm formats without external libraries). With libxml2 FontForge can read SVG fonts. With the freetype library FontForge will do a better job making bitmap characters for you. libuninameslist provides standard unicode names and annotations for unicode characters (it has been localized into English and French)

If you want to do autotracing around character images you should also download either