Where FM-Towns stores font

Ask for help with ScummVM problems

Moderator: ScummVM Team

Post Reply
bckpkol
Posts: 8
Joined: Sat Aug 27, 2011 1:02 pm
Location: Russia, Biysk

Where FM-Towns stores font

Post by bckpkol »

I want to create translation of the game Zak McKracken FM-Towns.
I unpack game with this tools: http://hibernatus34.free.fr/scumm/
But I don't find any font in unpacked game.
Explain me where stored font of FM-Towns and how to translate it to Russian.
User avatar
eriktorbjorn
ScummVM Developer
Posts: 3560
Joined: Mon Oct 31, 2005 7:39 am

Post by eriktorbjorn »

I don't have the FM-Towns version of Zak, but if it's anything like the FM-Towns version of Loom, the font is loaded by ScummEngine_v3::loadCharset() in resource_v3.cpp. That one looks for a file called number.LFL, where number is 99 minus the ID of the font. In Loom, there only appears to be font ID 0, so 99.LFL is the English font.

I'm not sure of the format, though it's probably fairly simple. I don't know what the first six bytes are (sizes, perhaps?) or if they're important, but the next bytes seems to be the number of characters in the font, the height of the font, a table (one byte per character) of the widths of each character in the font, and the rest is presumably just the characters themselves as bitmaps.

But I don't know how much of this - if any - applies to Zak.
Post Reply