share/gui: load entire font to memory at init
authorparasti <parasti@78b8d119-cf0a-0410-b17c-f493084dd1d7>
Tue, 23 Jun 2009 12:01:29 +0000 (12:01 +0000)
committerparasti <parasti@78b8d119-cf0a-0410-b17c-f493084dd1d7>
Tue, 23 Jun 2009 12:01:29 +0000 (12:01 +0000)
commit31d66173e1738a85b1ab3b41221d35601518dffd
tree6a73680092fa53c0b6f13ce638b6dd12ed1c5cbd
parenta1a24c8f1bcf0bb43d3bc0410b0a53cfcaef78d0
share/gui: load entire font to memory at init

SDL_ttf appears to directly access the font for every rendering, which
is much too slow when the font resides in an archive.  This patch
loads the entire font to memory, eliminating all I/O overhead during
rendering but increasing the memory footprint.

git-svn-id: https://s.snth.net/svn/neverball/trunk@2908 78b8d119-cf0a-0410-b17c-f493084dd1d7
share/gui.c