Page 1 of 1

More new fonts

Posted: 02 Oct 2006 17:30
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

Re: More new fonts

Posted: 02 Oct 2006 17:41
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.

Re: More new fonts

Posted: 02 Oct 2006 18:15
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

Re: More new fonts

Posted: 02 Oct 2006 18:27
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.

Posted: 02 Oct 2006 19:37
by minime
Done and done.

Posted: 21 Oct 2006 19:52
by Patchman
This should be fixed in nightly r1143+/beta 9.

Posted: 21 Oct 2006 20:57
by minime
Thank you