Navigation Menu

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

The letters 'n' and 'ñ' have noticeably different base letter sizes (Large Sprite Font). #6620

Closed
DorpsGek opened this issue Sep 6, 2017 · 5 comments
Labels
component: interface This is an interface issue flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)

Comments

@DorpsGek
Copy link
Member

DorpsGek commented Sep 6, 2017

james1101 opened the ticket and wrote:

To Reproduce:

  1. Use the sprite font and the spanish language.
  2. Start OpenTTD and do new game.
  3. Wait until a 'subsidy offered' message appears. (You may have to disable Cargodist to enable Subsidy creation.)
  4. Click on it.
    BUG: The letters 'n' and 'ñ' have noticeably different base letter sizes. (n: 10px * 8px; ñ: 15px * 10px with a total size of 15px*14px)

Possible Reason: When drawing the sprite font, in Spanish, the person who was doing the 'ñ' sprite decided to upscale it by a factor of ~1.5.

Suggested Fix: Have someone redraw the sprite, scaled back down to the 10px width of the 'n' sprite.

In the attached image, red-underlined letters are the relevant ones for this bug report.

OpenTTD Version 1.7.1 running on Win 7 Ultimate.

Attachments

Reported version: 1.7.1
Operating system: Windows


This issue was imported from FlySpray: https://bugs.openttd.org/task/6620
@DorpsGek
Copy link
Member Author

frosch wrote:

I cannot reproduce this.
The font in the screenshot does not look like any sprite font from any baseset I know.

Please attach your openttd.cfg, or at least these settings:
* language
* large_size
* large_aa
* large_font
* graphicsset
* gui_zoom


This comment was imported from FlySpray: https://bugs.openttd.org/task/6620#comment14766

@DorpsGek
Copy link
Member Author

adf88 wrote:

It looks like you've set a font in your openttd.cfg, but it doesn't have the 'ñ' character or it fall-backs somehow otherwise to such a font.

The 'ñ' letter in the text was rendered using its default picture which means that is has the default size (not the one you've set in openttd.cfg). However, the rest of letters are a bit smaller then the default ones which means that a custom font was used.

You may try experimenting with different 'large_font' and 'large_size' settings.

You can also try running OpenTTD in console through 'openttd.exe -d freetype=2' to get some more info about what font was picked exactly.


This comment was imported from FlySpray: https://bugs.openttd.org/task/6620#comment14767

@DorpsGek
Copy link
Member Author

james1101 wrote:

I've attached my openttd.cfg and the default version. Using the default settings, the ñ is still a bit larger, but only in the large newspaper font.

Attachments


This comment was imported from FlySpray: https://bugs.openttd.org/task/6620#comment14768

@DorpsGek
Copy link
Member Author

frosch wrote:

Ok, the triggering combination is:
* OpenGFX baseset
* Spritefont


This comment was imported from FlySpray: https://bugs.openttd.org/task/6620#comment14771

@DorpsGek
Copy link
Member Author

frosch closed the ticket.

Reason for closing: Fixed

in r27915


This comment was imported from FlySpray: https://bugs.openttd.org/task/6620

@DorpsGek DorpsGek added component: interface This is an interface issue flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) bug labels Apr 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: interface This is an interface issue flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)
Projects
None yet
Development

No branches or pull requests

1 participant