Projects / ttmkfdir

ttmkfdir

ttmkfdir is a tool to create valid and complete fonts.dir files from TrueType fonts. It is very useful when you plan to use a TrueType enabled font server that is based on the X11R6 sample implementation (xfsft for instance). Great care has been taken to correctly identify the encodings that a given TrueType font supports.

Tags Desktop Environment fonts
Licenses MIT/X

Tweet this project Short link

Rss Recent releases

  • Rrelease-mid
  •  22 Oct 2002 16:58
  • Rrelease-after

Changes: This release links against freetype2 and uses libtool for compiling.

  • Rrelease-mid
  •  30 Jan 2001 06:14
  • Rrelease-after

    Changes: First freshmeat announcement.

    Rss Recent comments

    Rcomment-before 30 Jun 2005 08:58 Rcomment-trans jonadab Rcomment-after

    Re: New version
    This all seems rather obsolete now. Distributions are now (June 2005) shipping a version 3.0.9, but I cannot seem to find a primary source for that version, or the source for it, on the web. rmpfind turns up a binary rpm, which _lists_ a src.rpm as the corresponding source, but I don't see the src.rpm on rpmfind and had difficulty turning it up anyplace.

    So, where is this version 3.0.9 coming from? Who is maintaining it? If the binary-packaged version just dumps core on my (Ubuntu) system, where can I get the source in order to compile it myself?

    I eventually tracked down a src.rpm here:
    http://dominia.org/djao/xfree430/SRPMS/
    And another one here:
    http://ftp.redhat.com/pub/redhat/linux/enterprise/4/en/os/i386/SRPMS/
    These, however, do not compile on my system, complaining about header-inclusion order, and not being a C programmer I really can't get anywhere with that. I can't find the source in a package format other than rpm anywhere. Synaptic doesn't show a "devel" or "source" package for ttmkfdir, for instance; sourceforge has never heard of it; Google is little help, either. Can someone tell me where to get a version of this that will compile?

    Rcomment-before 25 Dec 2004 15:42 Rcomment-trans flgllm1 Rcomment-after

    Command line
    Users might want to note to run ttmkfdir from the directory with the TTF fonts, using the -o commandline option to specify the destination file

    Rcomment-before 17 Oct 2002 13:13 Rcomment-trans fredlwm Rcomment-after

    Re: compiling with gcc 3.2, glibc 2.2.5 and Python 2.2.2

    > For gcc 3.2 use the upper hint. But
    > there was
    > another compile error: When make stops
    > with an
    > error about different exception
    > difinitions in isatty,
    > change in parser.cpp at lin3 1505 to
    > extern int isatty
    > YY_PROTO((int)) throw ();

    I had the same problem, but fixed it upgrading flex to the version from RedHat Raw Hide (ftp://rawhide.redhat.com/pub/redhat/linux/rawhide/SRPMS/SRPMS/), which includes some patches. I was using the one from Slackware. parser.cpp is autogenerated. BTW, you don't need Python. I compiled without it.

    Anyway, I don't know if this ttmkfdir version is that better, but seems the most up do date, and I wanted to avoid installing FreeType 1.x.

    Rcomment-before 17 Oct 2002 11:47 Rcomment-trans danosterrath Rcomment-after

    compiling with gcc 3.2, glibc 2.2.5 and Python 2.2.2
    For gcc 3.2 use the upper hint. But there was
    another compile error: When make stops with an
    error about different exception difinitions in isatty,
    change in parser.cpp at lin3 1505 to extern int isatty
    YY_PROTO((int)) throw ();

    Rcomment-before 09 Oct 2002 15:33 Rcomment-trans fredlwm Rcomment-after

    New version
    I found a new unofficial (I really doubt there will be any official) version (dated April 17) here (http://people.redhat.com/yshao/). I compiled it with GCC 3.2 and FreeType 2.1.2 (the old requires FreeType 1.x).

    I had to add the following to ttf.h, after #include "encoding.h": using namespace std;

    2e29c96a80240b0c51889c00c0ab8207_thumb

    Project Spotlight

    NeroLINUX

    A graphical CD/DVD burning application.

    No-screenshot

    Project Spotlight

    KSI Scheme

    An implementation of the Scheme programming language