Cyrillic support

Forum for technical discussions regarding development. If you have a general suggestion, problem or comment, please use one of the other forums.

Moderator: OpenTTD Developers

Post Reply
Quark
Transport Coordinator
Transport Coordinator
Posts: 325
Joined: 20 Sep 2006 11:36
Location: Russia, Moscow

Cyrillic support

Post by Quark »

Previously cyrillic glyphs was supported with newgrf file by replacing top half of latin characters, but with UTF8 merging in branch all cyrillic glyphs renders as «?» — how to add cyrillic support to code now?
Image
Rubidium
OpenTTD Developer
OpenTTD Developer
Posts: 3815
Joined: 09 Feb 2006 19:15

Post by Rubidium »

Either by replacing the correct characters, if I'm correct the U+0400 to U+052F range instead of the top range of latin characters. Another solution is by using standard fonts, but you need to have OTTD compiled with freetype support. This can be done by setting {small,medium,large}_font in openttd.cfg (either the path to the font or the font family name if you've compiled with fontconfig.
Quark
Transport Coordinator
Transport Coordinator
Posts: 325
Joined: 20 Sep 2006 11:36
Location: Russia, Moscow

Post by Quark »

I not familar with freetype support in OpenTTD — is here any manual about it?
Image
peter1138
OpenTTD Developer
OpenTTD Developer
Posts: 1732
Joined: 30 Mar 2005 09:43

Post by peter1138 »

Here is a NewGRF that adds support for cyrillic glyphs using the unicode range.

http://fuzzle.org/o/russianw.grf
He's like, some kind of OpenTTD developer.
Quark
Transport Coordinator
Transport Coordinator
Posts: 325
Joined: 20 Sep 2006 11:36
Location: Russia, Moscow

Post by Quark »

thank you, it works :)
User avatar
DarkFenX
Engineer
Engineer
Posts: 98
Joined: 16 Oct 2006 20:32
Location: Russia, Saint-Petersburg
Contact:

Post by DarkFenX »

Btw i prefer freetype to cyrillic glyphs, and found good font (that supports cyr letters too, ofc) - bold verdana (size 10), perfect for tycoon medium font. But can't find good replacement for small and large fonts. Does anyone has variants? Standard fonts are preferred, ofc...
P.S. I play eng version but needed some way to communicate with others using cyr font, so for me medium-size is more than enough... but not for others :)
And some advices about compiling with freetype support - http://www.tt-forums.net/viewtopic.php?t=28455
- It's hot as hell in here.
- You see it too? For me, it's always like this.
-------------------
ICQ: 302028069
Jabber: DarkFenX@jabber.org
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 45 guests