Universal font - support for foreign languages

Discuss, get help with, or post new graphics for TTDPatch and OpenTTD, using the NewGRF system, here. Graphics for plain TTD also acceptable here.

Moderator: Graphics Moderators

Post Reply
User avatar
minime
Transport Coordinator
Transport Coordinator
Posts: 339
Joined: 18 Jan 2004 10:02
Skype: dan.masek
Location: Prague, Czech Republic
Contact:

Universal font - support for foreign languages

Post 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?
Last edited by minime on 24 Feb 2006 04:21, edited 1 time in total.
Only two things are infinite, the universe and human stupidity, and I'm not sure about the former. --Albert Einstein
Image Image Image
User avatar
Wile E. Coyote
Tycoon
Tycoon
Posts: 8515
Joined: 08 Jul 2004 22:14
Skype: wile.e.coyote2
Location: Belgrade, Serbia
Contact:

Post 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.
Serbian rail set with Serbian scenario (ECS, PBI, FIRS and Tourist set compatible) Website | Topic and download | Latest version: 03.06.2015.
Serbian tram set Tracking table | TTD Patch tram set Latest version: 17.06.2015. | Open TTD Remix Latest version: 11.07.2015.
WIN-DOS GRF Converter Topic and download | Version 0.2.1: 09.01.2005.


Runner-up in "Best avatar Forums award" for years 2006 and 2010!
User avatar
minime
Transport Coordinator
Transport Coordinator
Posts: 339
Joined: 18 Jan 2004 10:02
Skype: dan.masek
Location: Prague, Czech Republic
Contact:

Post 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
Only two things are infinite, the universe and human stupidity, and I'm not sure about the former. --Albert Einstein
Image Image Image
User avatar
Wile E. Coyote
Tycoon
Tycoon
Posts: 8515
Joined: 08 Jul 2004 22:14
Skype: wile.e.coyote2
Location: Belgrade, Serbia
Contact:

Post 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).
Serbian rail set with Serbian scenario (ECS, PBI, FIRS and Tourist set compatible) Website | Topic and download | Latest version: 03.06.2015.
Serbian tram set Tracking table | TTD Patch tram set Latest version: 17.06.2015. | Open TTD Remix Latest version: 11.07.2015.
WIN-DOS GRF Converter Topic and download | Version 0.2.1: 09.01.2005.


Runner-up in "Best avatar Forums award" for years 2006 and 2010!
User avatar
minime
Transport Coordinator
Transport Coordinator
Posts: 339
Joined: 18 Jan 2004 10:02
Skype: dan.masek
Location: Prague, Czech Republic
Contact:

Post 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
Only two things are infinite, the universe and human stupidity, and I'm not sure about the former. --Albert Einstein
Image Image Image
User avatar
minime
Transport Coordinator
Transport Coordinator
Posts: 339
Joined: 18 Jan 2004 10:02
Skype: dan.masek
Location: Prague, Czech Republic
Contact:

Post 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.
Only two things are infinite, the universe and human stupidity, and I'm not sure about the former. --Albert Einstein
Image Image Image
User avatar
Wile E. Coyote
Tycoon
Tycoon
Posts: 8515
Joined: 08 Jul 2004 22:14
Skype: wile.e.coyote2
Location: Belgrade, Serbia
Contact:

Post by Wile E. Coyote »

Here are letters for Serbian/Croatian/Bosnian support:
Attachments
EEFonts.png
EEFonts.png (2.02 KiB) Viewed 10069 times
Serbian rail set with Serbian scenario (ECS, PBI, FIRS and Tourist set compatible) Website | Topic and download | Latest version: 03.06.2015.
Serbian tram set Tracking table | TTD Patch tram set Latest version: 17.06.2015. | Open TTD Remix Latest version: 11.07.2015.
WIN-DOS GRF Converter Topic and download | Version 0.2.1: 09.01.2005.


Runner-up in "Best avatar Forums award" for years 2006 and 2010!
User avatar
minime
Transport Coordinator
Transport Coordinator
Posts: 339
Joined: 18 Jan 2004 10:02
Skype: dan.masek
Location: Prague, Czech Republic
Contact:

Post 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
Attachments
unifont-0.9.zip
(3.63 KiB) Downloaded 326 times
Only two things are infinite, the universe and human stupidity, and I'm not sure about the former. --Albert Einstein
Image Image Image
mudr
Engineer
Engineer
Posts: 1
Joined: 02 Jan 2007 21:26

Post 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."
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Post by DaleStan »

That's OpenTTD, not TTDPatch. Ask peter1138.

Or, more accurately, ask him document which actions (or portions thereof) are static-safe.
To get a good answer, ask a Smart Question. Similarly, if you want a bug fixed, write a Useful Bug Report. No TTDPatch crashlog? Then follow directions.
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
peter1138
OpenTTD Developer
OpenTTD Developer
Posts: 1794
Joined: 30 Mar 2005 09:43

Post 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.
He's like, some kind of OpenTTD developer.
User avatar
Wile E. Coyote
Tycoon
Tycoon
Posts: 8515
Joined: 08 Jul 2004 22:14
Skype: wile.e.coyote2
Location: Belgrade, Serbia
Contact:

Post by Wile E. Coyote »

Also, supported language is Slovenian too.
Serbian rail set with Serbian scenario (ECS, PBI, FIRS and Tourist set compatible) Website | Topic and download | Latest version: 03.06.2015.
Serbian tram set Tracking table | TTD Patch tram set Latest version: 17.06.2015. | Open TTD Remix Latest version: 11.07.2015.
WIN-DOS GRF Converter Topic and download | Version 0.2.1: 09.01.2005.


Runner-up in "Best avatar Forums award" for years 2006 and 2010!
Post Reply

Return to “Graphics Development”

Who is online

Users browsing this forum: Amazon [Bot] and 16 guests