« Chaosradio Express-RSS-Feed in Liferea richtig anzeigenDas Gerücht um die Personalausweisnummer »

Generating up-to-date TTF files for the Terminus font

03/11/09 09:14:17 pm, by Tblue Email   English (GB) latin1
Categories: Software, English posts, Entwicklung, Linux

My favourite monospaced programming font is Terminus – I use it on each of my two machines.

The downloadable tarball contains scripts to generate versions of the font which can be read e. g. by the X server or used with a Linux TTY. That works wonderfully.

My old favourite text editor (Geany) used fontconfig to manage fonts, so I didn’t have to to change anything to make Terminus work with it. But recently I switched to a more feature-rich IDE: Netbeans. Since Netbeans is a Java application, it cannot use the font files which the X server (and fontconfig) can read but instead needs TTF files.

Follow up:

Luckily, there is a TTF version of Terminus available on the web. It works with Java (and Netbeans, too), but that’s where my problems began: Firstly, the font seems to miss the €uro symbol and secondly, it uses slanted single quotes, which simply look ugly to me (too much like backticks). It also seems to be based on an extremely old release of the Terminus font (dated back to 2004; that wouldn’t even bother me that much if it would work flawlessly).

So what’s the solution? I figured out how to generate my own TTF version of Terminus (even with outlines!) which fixes all my problems I mentioned above. It isn’t perfect (well, the outlines aren’t), but it works. Better than nothing, right?

Since I am such a generous person (ahem), I decided to make the files available to the public. You can get them at http://files.ax86.net/terminus-ttf. The files are licensed under the terms of the GNU General Public License (GPL), version 2 or later (that’s the license of the Terminus BDF files I used to generate my TTF version).

To make your JRE aware of the fonts, copy them to its font directory (/opt/java/jre/lib/fonts on Arch Linux).

Some last remarks:

  • The “ge1″ patch has been applied to the BDF source files.
  • Beware of the italic version: It’s extremely ugly (it has been generated automatically by mkitalic).
  • I only tested the fonts on Linux and with Sun’s JRE. That means I didn’t test how the font outlines look (as I said above, some of them are not totally equal to the bitmaps), since Java uses the embedded bitmaps (which should be fine, since I didn’t alter them).
  • Tools I used to generate the fonts: FontForge, AutoTrace.
  • For more information on how I actually generated the TTF files, read Now you can easily generate your own TTF versions of the Terminus font.
  • Happy coding!

Trackback address for this post

Trackback URL (right click and copy shortcut/link location)

1 comment

Comment from: vim_commando [Visitor]
You sir just made my day. Getting Terminus into netbeans just made it that much more attractive to use.
24/02/10 @ 06:26

This post has 33 feedbacks awaiting moderation...

Leave a comment


Your email address will not be revealed on this site.

Your URL will be displayed.
(Line breaks become <br />)
(Name, email & website)
(Allow users to contact you through a message form (your email will not be revealed.)
Stoppt die Vorratsdatenspeicherung! Jetzt klicken &handeln! Willst du auch an der Aktion teilnehmen? Hier findest du alle relevanten Infos
und Materialien: