How to change font for Flight of the Amazon Queen?

General chat related to ScummVM, adventure gaming, and so on.

Moderator: ScummVM Team

Post Reply
maxxlu
Posts: 3
Joined: Fri Feb 03, 2006 12:12 pm

How to change font for Flight of the Amazon Queen?

Post by maxxlu »

I want to translate this game to Russian.
So far I found at least one issue: the font is hard-coded in the resources.
What will be the best way to add a support for Russian font?

I was able to recompile SCUMMVM with my custom Russian fonts, but I suppose it will break other languages.
Last edited by maxxlu on Wed Jul 20, 2016 8:44 pm, edited 1 time in total.
User avatar
sev
ScummVM Lead
Posts: 2272
Joined: Wed Sep 21, 2005 1:06 pm
Contact:

Post by sev »

Хорошая новость :)

The font was built into executable, so is with ScummVM. That means that only way for you would be to add it to ScummVM as well (see queen/display.cpp). There is no problem with that, start translating the game (license allows that), and at the point when you will be about to insert the text into game data, just submit your font to our patchtracker.


Eugene
maxxlu
Posts: 3
Joined: Fri Feb 03, 2006 12:12 pm

Post by maxxlu »

Thanks for your reply.
just submit your font to our patchtracker.
Eugene
And what should I do for this? I already have a Russian font.
My solution is to add several lines of code into defs.h & display.cpp to define a new font array.
Last edited by maxxlu on Wed Jul 20, 2016 8:45 pm, edited 1 time in total.
User avatar
sev
ScummVM Lead
Posts: 2272
Joined: Wed Sep 21, 2005 1:06 pm
Contact:

Post by sev »

maxxlu wrote: And what i need to do for this? Russian font i already have.
I think that enough simply add some lines of code in defs.h & display.cpp and define new font array.
Just take a look how it handles Hebrew font and do the same.


Eugene
maxxlu
Posts: 3
Joined: Fri Feb 03, 2006 12:12 pm

Post by maxxlu »

Just take a look how it handles Hebrew font and do the same.
I already did it, but how can I can add my code to the SCUMMVM release on SourceForge?
Last edited by maxxlu on Wed Jul 20, 2016 8:46 pm, edited 1 time in total.
User avatar
dreammaster
ScummVM Developer
Posts: 551
Joined: Fri Nov 04, 2005 2:16 am
Location: San Jose, California, USA

Post by dreammaster »

Submit your changes to the Patch Tracker within the Sourceforge Project page. That will let the admins review and test it, and then decide whether to integrate it into the official source.
Post Reply