Page 1 of 1

Universal font - support for foreign languages

Posted: 22 Feb 2006 03:11
by minime
As I've been working on Czech fonts, I've fallen to dislike the current small letters and had a shot at making what I think looks a bit better. It includes small letters, and there should be all the symbols for Basic Latin and Latin-1 Supplement plus a few Czech characters from Latin Extended A.

Image

What do you think?

Posted: 22 Feb 2006 06:56
by Wile E. Coyote
Looks better indeed. As I suggested in Tycoonez forums, it'd be good to make one GRF for all Eastern European letters (Czech, Slovak, Polish, Hungarian, Serbian, Croatian, Bosnian, Romanian etc.) for all 3 fonts. Then add check for every GRF with those letters, and if letters aren't loaded, report error. Now we are waiting for Patchman to fix bug with big fonts.

Posted: 23 Feb 2006 05:57
by minime
Made some progress and a GRF. So far we have the Czech letters done.
More info here.

0x0080-0x0100 : Image Image Image
0x0100-0x017F : Image Image Image

Posted: 23 Feb 2006 10:01
by Wile E. Coyote
Actually, it's needed to draw 4 fonts; there is newfonts font, and we should make EE letters compatible with it too (I prefer newfonts rather than original TT middle font and I suppose many people use it).

Posted: 23 Feb 2006 18:55
by minime
Wile E. Coyote wrote:Actually, it's needed to draw 4 fonts; there is newfonts font, and we should make EE letters compatible with it too (I prefer newfonts rather than original TT middle font and I suppose many people use it).
The package I've made is intended to only add the missing characters for the in-game fonts. I would like too keep that scope.

Those new small letters I've shown earlier are a concept, and I'm not planning to do them right away (especially considering hardly anyone seems to care). Any replacement font should be a package on its own. I've been playing around with the medium and large fonts as well, and I think I may have found what I like. However, it will involve hundreds of symbols and a lot of work - not something I'm going to do right now.

I didn't create newfonts.grf, the author is Andrés Szögön. To be honest, I wasn't even aware of it until this January, when it overrode my pre-UTF-8 czech fonts. Either way, it needs to be updated to UTF-8. If there's anybody willing to get the author's permission, draw the glyphs, measure them and write the sprite entries for them, go for it :D

Posted: 24 Feb 2006 04:25
by minime
Well, I suppose I could do entire new fonts, but it's not gonna be right away.

This is the medium font I was thinking about:

Image

And while I'm at it, here's a large one:

Image

There you have all the characters from 0x0020-0x017F. The fonts are Tahoma and Book Antiqua respectively.

Posted: 02 Mar 2006 17:15
by Wile E. Coyote
Here are letters for Serbian/Croatian/Bosnian support:

Posted: 02 Oct 2006 15:35
by minime
Unifont v0.9
TTD Unicode support font

Requires TTDPatch 2.5 beta 8 or greater.

A Unicode support font containing sets of additional TTD-style glyphs for additional languages. Currently the following languages are supported: Czech, Serbian, Croatian, Bosnian (and possibly more).

It is possible, upon request, to add additional glyphs to this GRF.

Included characters:

Code: Select all

Á 	U+00C1 	LATIN CAPITAL LETTER A WITH ACUTE
É 	U+00C9 	LATIN CAPITAL LETTER E WITH ACUTE
Í 	U+00CD 	LATIN CAPITAL LETTER I WITH ACUTE
Ó 	U+00D3 	LATIN CAPITAL LETTER O WITH ACUTE
Ú 	U+00DA 	LATIN CAPITAL LETTER U WITH ACUTE
Ý 	U+00DD 	LATIN CAPITAL LETTER Y WITH ACUTE
á 	U+00E1 	LATIN SMALL LETTER A WITH ACUTE
é 	U+00E9 	LATIN SMALL LETTER E WITH ACUTE
í 	U+00ED 	LATIN SMALL LETTER I WITH ACUTE
ó 	U+00F3 	LATIN SMALL LETTER O WITH ACUTE
ú 	U+00FA 	LATIN SMALL LETTER U WITH ACUTE
ý 	U+00FD 	LATIN SMALL LETTER Y WITH ACUTE
Ć 	U+0106 	LATIN CAPITAL LETTER C WITH ACUTE
ć 	U+0107 	LATIN SMALL LETTER C WITH ACUTE
Č 	U+010C 	LATIN CAPITAL LETTER C WITH CARON
č 	U+010D 	LATIN SMALL LETTER C WITH CARON
Ď 	U+010E 	LATIN CAPITAL LETTER D WITH CARON
ď 	U+010F 	LATIN SMALL LETTER D WITH CARON
Đ 	U+0110 	LATIN CAPITAL LETTER D WITH STROKE
đ 	U+0111 	LATIN SMALL LETTER D WITH STROKE
Ĕ 	U+011A 	LATIN CAPITAL LETTER E WITH CARON
ĕ 	U+011B 	LATIN SMALL LETTER E WITH CARON
Ň 	U+0147 	LATIN CAPITAL LETTER N WITH CARON
ň 	U+0148 	LATIN SMALL LETTER N WITH CARON
Ř 	U+0158 	LATIN CAPITAL LETTER R WITH CARON
ř 	U+0159 	LATIN SMALL LETTER R WITH CARON
Š 	U+0160 	LATIN CAPITAL LETTER S WITH CARON
š 	U+0161 	LATIN SMALL LETTER S WITH CARON
Ť 	U+0164 	LATIN CAPITAL LETTER T WITH CARON
ť 	U+0165 	LATIN SMALL LETTER T WITH CARON
Ů 	U+016E 	LATIN CAPITAL LETTER U WITH RING ABOVE
ů 	U+016F 	LATIN SMALL LETTER U WITH RING ABOVE
Ž 	U+017D 	LATIN CAPITAL LETTER Z WITH CARON
ž 	U+017E 	LATIN SMALL LETTER Z WITH CARON
minime

Posted: 02 Jan 2007 21:32
by mudr
i am very happy about this font. thanks.
but how to manage, that font will be used also in lan/internet game, if newgrf files are controlled by server?
ive got information about [newgrf-static] part of openttd.cfg but then openttd tells me: "ignoring invalid NewGRF unifont.grf: unsafe for static use."

Posted: 02 Jan 2007 21:54
by DaleStan
That's OpenTTD, not TTDPatch. Ask peter1138.

Or, more accurately, ask him document which actions (or portions thereof) are static-safe.

Posted: 03 Jan 2007 11:43
by peter1138
As of r7795, unifont.grf will work in the static section.

An Action E that force activates the GRF (instead of deactivating others) is now allowed.

Posted: 03 Jan 2007 12:28
by Wile E. Coyote
Also, supported language is Slovenian too.