Wintermute Engine Forum
Wintermute Engine => Technical forum => Topic started by: SBOVIS on August 12, 2007, 03:53:11 PM
-
Hi,
I have a true type font for my conversations that she the translated string file in russian. All well and good but my scene font is a bitmap font, can I use the same ttf font for this?
or do I need to use bitmap, at the moment I get ??????? (question marks) instead of text.
If I have to use bitmap fonts does anyone have a russian one??
Many thanks
-
can I use the same ttf font for this?
Yes you can, bitmap and truetype fonts are interchangeable. You can use either anywhere (only using truetype for the system font is not recommended).
-
Ah that is what I thought, but when I change lets say the main menu definition file to read from times roman (open type) true type font it does not display any characters.
I am using the same options menu as the demo and still get ???????? (question marks) instead of text.
I am using a bitmap font for system font and time roman.ttf for all other text.
Have you had this happen to you?
-
Make sure your TrueType font supports Cyrillic (not every TT font supports every character set). In the .font definition file change CHARSET to 10.
-
Yes I have done that, The times roman font I am using is base windows, this supports Russian etc via unicode. I am using this font specifically because all windows has this base font.
I get russian text for all conversations using the truetype font but any scene text that is set in scene.edit I get ???? (question marks) and any text on the main menu, load, save etc I get ????? too.
I have changed all window definition files but still get ???? question marks.
-
And are you 100% sure the windows and the caption window are using the same font as conversations? If it works at one place, it must work everywhere.
-
Yes that is what I thought, I now have scene text and conversation text but no text on my options window, load, save, quit windows.
Load.window
WINDOW
{
blah blah
FONT = "fonts\truetype.font" (this is the definition wintermute font file that is directed to TIMES font)
blah
bla
-
Well, it should work, as far as I can tell.
-
The text for the main WME menu detailing game options etc, where is this kept?
Many thanks for your help, it seems fine in english hahahahahaha
-
ok got 99% done now, was an issue when changing to Times as this put some text off of the window and could not be seen. Also the string file from my publishers had some format errors on the tag lines. This cause ????? question marks to be shown.
The only issue I have now is the first lines in the string file that shows the text on the WME game options screen - Initial screen when running the game to choose Antialiasing etc. Using the CZECH string file this shows fine but in russian this is not and shows ?????? (question marks) is this because of the code page you mentioned??
Both script files are in TIMES ROMAN.
Other than this it is working OK.
Any ideas?
Cheers . ::beer
-
It's possible actually, it uses Windows system font. It should look ok in Russian windows.
-
mmmmmmmmm here is a screen grab, you can see some are ok, but some are not.
Very weird, have we any russian wintermutees that could help I wonder??
(http://)
-
dam cannot attach picture, give me your email addres mnemonic and will send to you.
-
Hello, I'm Russian :) Send me screenshot too. Email: teluh[dot]d[at]z-nsk[dot]ru. And you may try to ask here: http://wme.forum24.ru/
-
Hi Dionysius,
Di you get my email with the screen grab?
-
Dionysius,
Have you had any issues with the front options screen of WME, which shows 32bit, 16bit etc not showing in russian?? I am English and there is no issue with english or Czech, but using a Russian font and translated string file from english to Russian I get question marks instead of text on some (not all) of the text on this initial options screen.
Any other russian developers had this issue? I am using TIMES ROMAN font and character set is 10, all in game is fine, just not the front optiones screen.
???
-
hi SBOVIS,
we've localized our game to russian fully and didn't experience any difficulties.
The only thing we did was setting
CHARSET = 10
in all font files.
Are you sure you don't have any static texts in scripts instead of string.tab file?
-
Hi Metamorphium,
All in game text is fine in russian, and displays no problem, CHARSET =10 is set.
The only issue I have is when the game is run and the WME options screen appears, some (not all) of the text on this small default panel comes up as question marks ????? and not russian, but as I said there is some text that is fine. If the charset was an issue or the font surely all would be affected??
Really weird!!! works no problem in cezch and English
-
Is the russian string table saved in UTF-8 format?
-
Yes it is, it would have to be otherwise I would not get in-game Russian text? hahahahha ;D
-
Not necessarily.
-
The string format is UTF-8, the same format for the Cezch version.
-
In any case, it should display ok in Russian Windows.
As for the CZ version, if you make a screenshot, I can tell you if it displays ok or not. Because in this case you wouldn't get question marks, but misplaced characters (CZ characters mapped to western codepage).
-
Thanks Menmonic, Can you email me -sbovis@blueyonder.co.uk
and I will reply with screenshots.
Many thanks.
-
Can you just upload the image somewhere? Anyway, you can see my mail address in my profile.
-
OK will do later, when I get back to other PC.
Thanks
-
Hi Mnemonic,
I have sent you an email with the TEST image on it showing the issue I am getting.
Thanks ::rock
-
Oh, I was talking about a picture of the czech version. It's likely not to display well on your machine, but you probably can't tell.
Anyway, as I said, it should be ok on Russian Windows. To test it, go to Control Panel -> Regional Settings -> Advanced tab. Choose "Russian" and click OK. Windows will reboot. Now if you run the game, it should display the settings dialog completely in Cyrillic.
Now, my working version of WME uses Unicode whenever possible, so it displays mostly ok even without changing the regional settings, but in Vista even with Unicode the window caption displays question marks. I suppose it's because Vista uses other font for captions, I'm not sure.
-
OK Mnemonic thanks.