Skrift - a pure Ruby TrueType font renderer
Skrift is a tiny (<600 lines currently) pure-Ruby rewrite of the libschrift TrueType font renderer.
You can find it on Github where there’s also a basic demo. It’s also available from Rubygems as ‘skrift’. Skrift renders glyphs to greyscale that’s fairly easy to render into images etc., and also extracts the font metrics needed to correctly place the glyphs, but does not yet contain any layout engine.
More documentation and cleanups coming up, as well as integration with a (pure-Ruby) X11 client library.
Post a comment