Creating a compressed file.

Home


fontWriteCompressed() exists, although the compression algorthm was larger than the amount of diskspaced saved by compression. If you'd like to compress a file, you can load it memory-mapped using the RW functions. I wait until my release build to produce the below throw-away code, so I only have to compress fonts once.


int main(){
fontLoadForCompression("MsSerfTerminal.tga","MsSerfTerminalData.dat","MsSerf","Terminal");
fontWriteUncompressed("Foo.bar");
return 0;