PXR + Cufon = Pxfon
Fast-forward three years. Cufón is sIFR’s heir apparent. But in my quick tests Cufón wasn’t up to the challenge of generating a
font.js from any of my pixel fonts. Even if it had, the result would probably have been marred by a pixel’s worst enemy, anti-aliasing.
So yesterday I cracked open a couple of Cufón-generated
font.js files and the un-minified
cufon.js to figure out how the pieces fit together. I was able to successfully reverse engineer the format and modify my original PXR generator to output Cufón-compatible
You can play around with the generator on Pixel Portraits. I haven’t added any sort of error checking and the current outline tracing algorithm is remedial at best; it can only see characters one row at a time. That means it’s especially inefficient on larger pixel typefaces (anything greater than 18px tall). But it’s good enough for me.