Page 2 of 4

Posted: 19 Jan 2007 18:15
by Darkvater
ickoonite wrote:
glx wrote:Take a look in the readme :)
If you're referring to the bit about small_font, medium_font and large_font, I have tried that (of course), specifying both font paths and simple font names, all to no avail.
If those don't work the debug window should show some error/warning about them. What do they say? Start with the parameters "-d 3" for example.

Posted: 20 Jan 2007 02:00
by ickoonite
Darkvater wrote:
ickoonite wrote:
glx wrote:Take a look in the readme :)
If you're referring to the bit about small_font, medium_font and large_font, I have tried that (of course), specifying both font paths and simple font names, all to no avail.
If those don't work the debug window should show some error/warning about them. What do they say? Start with the parameters "-d 3" for example.
I've now tried starting it with -d 3, with each of the font lines specified as "/msgothic.ttc" (I put them in the root to avoid issues over paths with spaces in), but there is not a single mention of fonts or anything in the startup debug messages (all the way to the main menu screen), so unfortunately nothing useful I can cut and paste into here for you. (I tried -d 5 too)

I presume the Mac builds are built against Freetype, although I rolled one myself (admittedly without fontconfig) and it still wouldn't work, so it can't be that it's simply lacking Freetype.

But the problem here is not the font I am using - it is quite clear that no external font is being loaded at all, as I can see that it is still just using the standard bitmap font.

If I can do anything else debug-wise, let me know. I'd be particularly interested to know if anyone can get fonts to work on the Mac build.

Posted: 20 Jan 2007 06:08
by Ailure
# - Codechange: Add the ability to load savegames without matching grf's. ONLY allow games with matching GRFID's (and non-matching MD5SUM) to be loaded; missing is still denied as it can crash OpenTTD (r8106)

I love this change. Means that I can load some of my older games that used a older version of the newGRF's I upgraded lately. <<

Hi, I completed KOREAN Translation for 0.5.0-RC3

Posted: 20 Jan 2007 07:46
by Ezi
Hi! I'm Ezi from S. Korea.
I reply to announce that I completed KOREAN TRANSLATION for OpenTTD 0.5.0-RC4.


I don't know much of TTDforums so my friend(darkttd) has told me to post here.


and I added korean.zip files.
(It is for 0.5.0-RC4 and needs some settings for Korean Fonts. It includes korean.lng and korean.txt)


and for last, I'm sorry that my English is bad. :)

Goeden Dag (Dutch.. BOOM-)






[PLUS]
It still 'alpha version'. So some translated strings are not good expression.
But I think it is great works.

Posted: 20 Jan 2007 08:09
by DaleStan
MiHaMiX won't be particularly happy.
There's a thread right over here that ... Um, never mind. Not there.
There's a thread right over here ... Okaaay. So it's not there either.
The translator's guide sticky seems to have vanished, for some reason I can't even begin to fathom.

This exists for a reason.

Your work won't go to waste, though. Just use the correct tool in the future.

Posted: 20 Jan 2007 09:05
by peter1138
Thank you Ezi. There are a couple of strings in there that are now gone, so I've removed them. (EDIT, they're in 0.5.0-RC4, but not trunk... tum te tum)

DaleStan, the webtranslator doesn't have exclusive access to the language files :-)

Fonts now working on Mac OS X!

Posted: 20 Jan 2007 12:31
by ickoonite
ickoonite wrote:I presume the Mac builds are built against Freetype, although I rolled one myself (admittedly without fontconfig) and it still wouldn't work, so it can't be that it's simply lacking Freetype.

But the problem here is not the font I am using - it is quite clear that no external font is being loaded at all, as I can see that it is still just using the standard bitmap font.

If I can do anything else debug-wise, let me know. I'd be particularly interested to know if anyone can get fonts to work on the Mac build.
I've just rolled another version from SVN (revision 8288), compiling in Freetype (version 2.1.9, for what it's worth - the newest version Fink has), and it's working! I will do a little experimentation with different fonts and report back (because it's not much use if it depends on MS Mincho and MS Gothic, fonts which Mac users may not have).

Whoever fixed this, many thanks!

Re: Fonts now working on Mac OS X!

Posted: 20 Jan 2007 12:43
by ickoonite
ickoonite wrote:I will do a little experimentation with different fonts and report back (because it's not much use if it depends on MS Mincho and MS Gothic, fonts which Mac users may not have).
Having now had a fiddle round, specifying /System/Library/Fonts/Hiragino Marugo Pro W4.otf, although the filename is Japanese so must be specified as such) works quite nicely, and is a font that will be available on any Japanese Mac user's system.

Posted: 20 Jan 2007 13:44
by Darkvater
I donnu, Bjarni said something about not having Freetype support in RC1, but claimed that it has been fixed. If RC4 doesn't work properly, it looks like it has not...

ickoonite: please check out svn://svn.openttd.org/tags/0.5.0-RC4 because r8288 (HEAD) will not get you 0.5 once it's out.

Re: Hi, I completed KOREAN Translation for 0.5.0-RC3

Posted: 20 Jan 2007 13:55
by miham
Ezi wrote:I reply to announce that I completed KOREAN TRANSLATION for OpenTTD 0.5.0-RC4.
Dear Exi,

Thank you very much for translating OpenTTD into korean language, I'll include it in ... errr, it's already included.

Could you please drop me an email (or a PM), writing your desired WebTranslator2 login name, your password, your real name and your email address? I'll create your WT2 account and you can maintain your translations through WT2 easily.

Cheers,
Miham.

Re: Japanese (and Unicode generally) on OS X build

Posted: 20 Jan 2007 18:29
by Bjarni
ickoonite wrote:I'm the Japanese translator for OpenTTD and am a little bit peeved at the moment as the shiny new Unicode, etc. support doesn't appear to work on OS X. I've tried compiling with libfreetype, etc. but to no avail. Bit disappointing really, as it means I am having to run OTTD under Windows on Virtual PC to test out my modifications.

So, yeah, a fix for that would be absolutely brilliant. As it is now, on my system (where the system language is set to Japanese), if you load OTTD up without an openttd.cfg, it defaults to Japanese and thus just a load of question marks, because the font support appears not to be there.
It works. I just added

Code: Select all

small_font = /Library/Fonts/Chalkboard.ttf
medium_font = /Library/Fonts/Chalkboard.ttf
large_font = /Library/Fonts/Chalkboard.ttf
to openttd.cfg (for 0.5.0-RC4) and I get Chalkboard fonts in the game (can't say that it's an improvement with that particular font, but I got it).
The thing is that nobody coded anything to locate the fonts in OSX (yet?), so you have to give absolute paths in unix style. Doing it in unix style means doing it with the English path names, even if you use a different language, so it's always

Code: Select all

/Library/Fonts/
for the default fonts in OSX. You can also use 3rd party fonts, and they tend to be in

Code: Select all

/Users/(your user name)/Library/Fonts/
I have no idea on what font to recommend for Japanese though, but trial and error seems to be a decent place to start.

So you see, there is no reason to use Virtual PC for something that works natively :wink:

Posted: 20 Jan 2007 18:45
by ickoonite
Darkvater wrote:ickoonite: please check out svn://svn.openttd.org/tags/0.5.0-RC4 because r8288 (HEAD) will not get you 0.5 once it's out.
I just checked out RC4 as requested, built it and it doesn't work. The one caveat to that is that I am not very familiar with the weird (read: different :P) configure script - I got a couple of errors running configure, but it built anyway.

This is what came up when I ran configure:

Code: Select all

./configure --freetype-config=/usr/local/bin/freetype-config --with-cocoa --with-iconv=/usr/include
/bin/sh: --: invalid option
Usage:  /bin/sh [GNU long option] [option] ...
        /bin/sh [GNU long option] [option] script-file ...
GNU long options:
        --debug
        --dump-po-strings
        --dump-strings
        --help
        --init-file
        --login
        --noediting
        --noprofile
        --norc
        --posix
        --rcfile
        --restricted
        --verbose
        --version
        --wordexp
Shell options:
        -irsD or -c command or -O shopt_option          (invocation only)
        -abefhkmnptuvxBCHP or -o option
touch Makefile.config
touch Makefile.config
make[1]: `Makefile.config' is up to date.
Hope this helps.

Re: Japanese (and Unicode generally) on OS X build

Posted: 20 Jan 2007 19:04
by ickoonite
Bjarni wrote:It works.
Alas, no it doesn't.

Just to make sure it isn't me going insane, I have just downloaded a fresh copy of RC4 onto another Mac, which has never had OpenTTD installed on it before, copied only the data files over, loaded it up once (to generate the openttd.cfg file), closed it down, added the _font lines in, specifying exactly the same font as you (checking first to see that it exists on my system), and it still doesn't work.
Bjarni wrote:I have no idea on what font to recommend for Japanese though, but trial and error seems to be a decent place to start.
I have already posted about this further up in the thread - /System/Library/Fonts/Hiragino Marugo Pro W4.otf works well. The filename of the font itself is in fact in Japanese, but I cannot post that to phpBB as it doesn't appear to do Unicode, hence my transliteration here.

Re: Japanese (and Unicode generally) on OS X build

Posted: 20 Jan 2007 19:08
by Bjarni
ickoonite wrote:
Bjarni wrote:It works.
Alas, no it doesn't.

Just to make sure it isn't me going insane, I have just downloaded a fresh copy of RC4 onto another Mac, which has never had OpenTTD installed on it before, copied only the data files over, loaded it up once (to generate the openttd.cfg file), closed it down, added the _font lines in, specifying exactly the same font as you (checking first to see that it exists on my system), and it still doesn't work.
Bjarni wrote:I have no idea on what font to recommend for Japanese though, but trial and error seems to be a decent place to start.
I have already posted about this further up in the thread - /System/Library/Fonts/Hiragino Marugo Pro W4.otf works well. The filename of the font itself is in fact in Japanese, but I cannot post that to phpBB as it doesn't appear to do Unicode, hence my transliteration here.
First of all, try to get it working with English. If you add this font, you should get problems with Japanese as it lacks the Japanese letters as well.

If it fails to work with English as well, then we got an issue. What OS and what CPU do you use?

Re: Japanese (and Unicode generally) on OS X build

Posted: 20 Jan 2007 19:22
by ickoonite
Bjarni wrote:First of all, try to get it working with English. If you add this font, you should get problems with Japanese as it lacks the Japanese letters as well.

If it fails to work with English as well, then we got an issue. What OS and what CPU do you use?
It doesn't work with English either - that is why I tried using Chalkboard first. Both machines are PowerPCs (one G3, one G4) running 10.4.8.

Re: Japanese (and Unicode generally) on OS X build

Posted: 20 Jan 2007 20:45
by Bjarni
ickoonite wrote:
Bjarni wrote:First of all, try to get it working with English. If you add this font, you should get problems with Japanese as it lacks the Japanese letters as well.

If it fails to work with English as well, then we got an issue. What OS and what CPU do you use?
It doesn't work with English either - that is why I tried using Chalkboard first. Both machines are PowerPCs (one G3, one G4) running 10.4.8.
ok, we got a problem here... it works for me, but when I moved the file to another computer, it failed. Now the question is why....

Posted: 20 Jan 2007 21:32
by Darkvater
I have no idea how OSX works but can't you check what libraries the binary uses (ldd on linux) and if freetype is even loaded?

Posted: 20 Jan 2007 21:43
by Bjarni
ok, I think I got a solution.
I made a new binary based on RC4.
To install it, right click/control click on the RC4 app(bundle), and place the attached file in Contents/MacOS/ (remember to unzip it first :wink: )
Overwrite the openttd file that's already in there.
Close the window and you should now be able to set fonts. Let me know if this works.

Posted: 21 Jan 2007 03:33
by ickoonite
Right, that does work. But compared to the one I built against Freetype 2.3.0, the fonts are a bit ugly (particularly an issue in Japanese, where the small font sizes are already making legibility an issue):

Your RC4 build:
Image[/img]

My rev. 8288 build:
Image

Posted: 21 Jan 2007 09:41
by Bjarni
ickoonite wrote:Right, that does work. But compared to the one I built against Freetype 2.3.0, the fonts are a bit ugly (particularly an issue in Japanese, where the small font sizes are already making legibility an issue)
I just used the freetype that comes with OSX. How did you manage to get anohter version? Did you compile it yourself or something?