Google Code released the sfntly, a font programming library as open source. “Created by the Google Internationalization Engineering team, the sfntly Java and C++ library makes it easy for programmers to build high performance font manipulation applications and services,” reveals Stuart Gill is a Software Engineer.
Raph Levien, Google Web Fonts Engineer, says, “Using sfntly we can subset a large font in a millisecond. It’s faster than gzip’ing the result.”
“sfntly (\s-‘font-le\) was built from the ground up to provide high performance, an easy to use API, and both high-level and low-level access to font data. Font objects are both thread safe and high performance while still providing access for editing. After about a year of internal development sfntly is stable enough to move it into open source and share with others,” says Gill.
Adding, he says, “Bboth Java and C++ programmers can use sfntly to quickly and easily develop code to read, edit, and subset OpenType and TrueType fonts.”
The Google Web Fonts team uses the Java version to dynamically subset fonts, and the Chrome/Chromium browser uses the C++ version to subset fonts for PDF printing.
You can download sfntly from the Google Code site.