Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Text characters in minimap key sometimes touch each other #8905

Closed
Wuzzy2 opened this issue Mar 28, 2021 · 2 comments
Closed

Text characters in minimap key sometimes touch each other #8905

Wuzzy2 opened this issue Mar 28, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@Wuzzy2
Copy link
Contributor

Wuzzy2 commented Mar 28, 2021

Version of OpenTTD

2d7b34b

Expected result

The minimap key is readable.

Actual result

There are several letters touching each other. One example where this issue becomes obvious is with letters with diacritics (“ä”, “ö”, “ü”, “Ä”, “Ö”, “Ü”.

Here is an example:

image

This is the minimap in German.

Black is “Transportstrecken” (correct), dark red is “Gebaude/Industrien”. However, in the translation file it is “Gebäude/Industrien” (note the “ä”).
If you look closely, it turns out that there really is an “ä”, but it is touching the “n” of “Transportstrecken” so the really looks like an “a”.

In general, the whole characters seem to be very close to each other, I noticed other letters that touch each other (for example, “Züge” and “Fahrzeuge”, that's not even a German-specific thing).

Steps to reproduce

  1. Set language to German
  2. Open the minimap
  3. Select vehicle mode

(you can try other languages as well)

Possible solution

Add at least one "pixel" of space between the lines, to make sure the letters never touch each other. I'm not sure how practical this is, however. :-(

@LC-Zorg
Copy link

LC-Zorg commented Mar 28, 2021

In most cases, this problem and similar #8907 could be solved by changing the font (#8596)- however, currently the player doesn't have easy access to this option.
Another character

There is a related, more general problem of line spacing of text, which is often too small and degrades readability. The flagship example for me is the vehicle orders window, but also industries list, readme, news list...
Another problem that may also be related to this is that the game uses the spacing assigned to each font, which in many cases results in inappropriate, too large spacing and too large sign labels on the map.

Therefore, it might be a good idea to let the game create these spacings independent to the fonts specifics and allow the player to be able to adjust them.

@TrueBrain TrueBrain added the bug Something isn't working label Apr 10, 2021
@PeterN
Copy link
Member

PeterN commented Dec 24, 2022

This is a bug in OpenGFX, the small font is supposed to be 6 pixels tall (including line spacing), but OpenGFX is overlapping those bounds, mainly because it tries to stuff lowercase letters in there which is not possible for a 5 pixel high font.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants