I want to batch encode several .otf font files into a single CSS file. To my understanding, base64 embedded .otf fonts can be read by most browsers. Since Font-Squirrel's @font-face generator doesn't support direct base64 encoding of .otf files, I'll have to encode the fonts myself.

I found this method of using openssl in the OS X terminal to base64 encode files one at a time--and that only outputs them to individual files. Is there a way to batch encode them straight into a single CSS file?

link|improve this question

60% accept rate
This would go well on webmasters.se – afrazier Feb 9 at 22:46
feedback

1 Answer

up vote 0 down vote accepted

Check out http://www.spritebaker.com.

*Right now, SpriteBaker only encodes the first web-font file specified by each 'src' attribute in a @font-face declaration. That shouldn't be a problem. If you're batch encoding web-font files into CSS, you should only encode one web-font file per CSS file. Then you should deliver a targeted CSS file to each browser.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.