Mark Stephens Mark has been working with Java and PDF since 1999 and is a big NetBeans fan. He enjoys speaking at conferences. He has an MA in Medieval History and a passion for reading.

Useful Truetype/Opentype font tool

45 sec read

I have been doing a lot of work with fonts recently for our PDF to HTML5 convertor. This has involved taking apart many Truetype and OpenType fonts and even building new fonts which I then need to analyse. I usually use the excellent Fontforge for this. The main problem I have found with this tool is that if it does not like the font, the software crashes out with a segmentation fault – not the most useful message!

The Apple command line Truetype tools have never been updated to run on Intel processors, so only run on very ancient systems. Microsoft have some pretty decent utilities but they are Windows specific and I usually work on Unix/Mac systems.

So I was very pleased to discover that tucked away inside Fontforge (it is an additional package) are some additional tools. In particular showTFF is a very robust command-line tool (you can install it as a pre-built binary in Ubuntu). Inspite of the name it works with both Truetype and Opentype fonts. It has attempted to decompile everything I have thrown at it (including some very broken font data) and even makes suggestions on fixing wrong values in the data. Highly recommended!

What are your favorite tools when working with fonts?



Are you a Developer working with PDF files?

Our developers guide contains a large number of technical posts to help you understand the PDF file Format.

Do you need to solve any of these problems?

Display PDF documents in a Web app
Use PDF Forms in a web browser
Convert PDF Documents to an image
Work with PDF Documents in Java
Mark Stephens Mark has been working with Java and PDF since 1999 and is a big NetBeans fan. He enjoys speaking at conferences. He has an MA in Medieval History and a passion for reading.