Loading NUT fonts on demand
|Reported by:||eriktorbjorn||Owned by:||fingolfin|
|Cc:||Game:||Monkey Island 3|
Here's another way to possibly save a bit of memory. Currently, we pre-load all the NUT fonts. This happens both in the SCUMM engine, and in the SMUSH player. (The SMUSH player loads them as pixmaps, though, so they're not quite equal.)
But I imagine that most of the time, the game only uses one or two of the fonts, not (in the case of CoMI) all five. It's also possible that some are used only by the game and some only by the SMUSH movies, I don't know.
This patch delays the loading of the font until it's actually requested.
INSANE still pre-loads stuff. I haven't looked much at that.
Ticket imported from: #1640913. Ticket imported from: patches/707.