More new fonts

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:

More new fonts

Post by minime »

I've played with replacing the stock TTD fonts with something that's a little more pleasing to my eye. At the same time, it was my goal to make them Unicode compatible, so they can also be used with foreign language sets.
Initially it is my intention to make the fonts containt all the characters up to U+017F with a few useful extras. In addition to that, I'm willing to add, upon request, additional symbols (for example cyrillic and greek alphabets are feasible to do).

First I've replaced the medium font with 10pt Tahoma Bold, only to later find that's what Andrex used for his newfonts. Never mind, this way I'm able to extend the font with extra glyphs, which is something Wile E.Coyote really wanted me to do. In it's current incarnation, the font supports all the characters up to U+017F (exception being U+AA, U+AC, U+AF, U+B4-U+B8, U+BC and U+BD which still point to special TTD symbols and U+B9, which is superscript -1 instead of superscript 1).

The original TTD large font is the one I dislike the most. In my opinion, it is unnecessarily too big and rather blocky. Longer texts get broken into too many centered lines, which looks plain ugly. After a lot of searching for a serif font that resembled the large TTD letters, yet looked more subtle and rendered well without aliasing, I've settled for Adobe's Minion Pro SemiBold at 19pts.

The small font is much harder - at 5 pixels height, there's not much that can be done. I've tried to make the characters a little more rounded, as opposed to the square ones in TTD. I've even managed to draw small letters, but unfortunately spacing in some places doesn't allow any space below the letters for symbols like g,j,y, not to mention that the font is rather hard to read. I'll revert back to using large letters instead of small, as TTD already does and see how it looks then.

Here's an example of the difference between the old and new fonts:
Image

minime
Only two things are infinite, the universe and human stupidity, and I'm not sure about the former. --Albert Einstein
Image Image Image
Patchman
Tycoon
Tycoon
Posts: 7575
Joined: 02 Oct 2002 18:57
Location: Ithaca, New York
Contact:

Re: More new fonts

Post by Patchman »

minime wrote:(exception being U+AA, U+AC, U+AF, U+B4-U+B8, U+BC and U+BD which still point to special TTD symbols and U+B9, which is superscript -1 instead of superscript 1).
Um, if you have to do that for a reason, it's probably a bug in the patch. As long as you install these characters via action 12 instead of action A, they should be the actual unicode characters at these codepoints, not TTD's symbols, which are instead mapped to U+E0AA etc.
Josef Drexler

TTDPatch main | alpha/beta | nightly | manual | FAQ | tracker
No private messages please, you'll only get the answering machine there. Send email instead.
User avatar
minime
Transport Coordinator
Transport Coordinator
Posts: 339
Joined: 18 Jan 2004 10:02
Skype: dan.masek
Location: Prague, Czech Republic
Contact:

Re: More new fonts

Post by minime »

Patchman wrote:
minime wrote:(exception being U+AA, U+AC, U+AF, U+B4-U+B8, U+BC and U+BD which still point to special TTD symbols and U+B9, which is superscript -1 instead of superscript 1).
Um, if you have to do that for a reason, it's probably a bug in the patch. As long as you install these characters via action 12 instead of action A, they should be the actual unicode characters at these codepoints, not TTD's symbols, which are instead mapped to U+E0AA etc.
Yes, I had to do that, because when I defined them via action 12, they replaced the original TTD glyphs (Both those displayed by standard english text, as well as those displayed using my Czech translation, which has them defined using the corresponding U+E0XX codes). It puzzled me, since I undestood the Wiki the way you're explaining it (that the original symbols are mapped to the private area, and defining characters at those codepoints should not affect them), however I didn't yet get around to submitting a bug report about it (sorry).

P.S.: I've noticed that the B9, BC and BD symbols are not listed on the Wiki as special symbols - should I add them there, since at least BC and BD are used in several places in the GUI?

minime
Only two things are infinite, the universe and human stupidity, and I'm not sure about the former. --Albert Einstein
Image Image Image
Patchman
Tycoon
Tycoon
Posts: 7575
Joined: 02 Oct 2002 18:57
Location: Ithaca, New York
Contact:

Re: More new fonts

Post by Patchman »

minime wrote:Yes, I had to do that, because when I defined them via action 12, they replaced the original TTD glyphs
Yeah, that'll be a bug then. If you still have a grf file like that please submit that together with the bug report, thanks.

If possible please make the bug report soon so it can be fixed for 2.5, otherwise the grf may break when it gets fixed in 2.6 ...
P.S.: I've noticed that the B9, BC and BD symbols are not listed on the Wiki as special symbols - should I add them there, since at least BC and BD are used in several places in the GUI?
Yes, that would be good.
Josef Drexler

TTDPatch main | alpha/beta | nightly | manual | FAQ | tracker
No private messages please, you'll only get the answering machine there. Send email instead.
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 »

Done and done.
Only two things are infinite, the universe and human stupidity, and I'm not sure about the former. --Albert Einstein
Image Image Image
Patchman
Tycoon
Tycoon
Posts: 7575
Joined: 02 Oct 2002 18:57
Location: Ithaca, New York
Contact:

Post by Patchman »

This should be fixed in nightly r1143+/beta 9.
Josef Drexler

TTDPatch main | alpha/beta | nightly | manual | FAQ | tracker
No private messages please, you'll only get the answering machine there. Send email instead.
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 »

Thank you
Only two things are infinite, the universe and human stupidity, and I'm not sure about the former. --Albert Einstein
Image Image Image
Post Reply

Return to “Graphics Development”

Who is online

Users browsing this forum: No registered users and 13 guests