I am pleased to announce the first release (version 0.1) of TTF/Ruby,
under the terms of the GNU GPL.
TTF/Ruby is a pure Ruby library to read and write TrueType fonts.
Tables supported are :
- Cmap *
- Cvt *
- Fpgm *
- Kern *
- Post *
- Prep *
(Tables marked with an * are only partially supported)
API documentation is written directly in the source code and may be
generated with the following command-line:
$ rdoc -main “Font::TTF::File”
As you noticed, this release is marked 0.1 so do not expect API
compatibility for the next releases.
The tarball also ships some useful tools (and proofs of concept) based
ttfdump: a command-line tool to extract informations about a font.
ttfsubset: a tool which from a font and an input file generates a
subset from this font containing only characters in the input file.
Maybe useful to embed a lighter version of a font in a document or in
an embedded system.
ttfcairoglyphviewer: renders a selected glyph using Ruby/GTK, Rcairo
and TTF/Ruby. It also displays markers for corner points, curve control
points, and implicit points.
ttfglyph2svg: prints to stdout a selected glyph in SVG format.
Comments are of course welcome. And there is a large TODO list for the
I would like to thank Evermore Software, China, where I am currently an
intern, for giving me the permission to release this project (which
started as a prototype for a Java program).