bfg: save io state flags. Refactored font data/spec generation from one function into two.