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

Height of sprite font #5084

Closed
DorpsGek opened this issue Feb 25, 2012 · 4 comments
Closed

Height of sprite font #5084

DorpsGek opened this issue Feb 25, 2012 · 4 comments
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)

Comments

@DorpsGek
Copy link
Member

PaulC opened the ticket and wrote:

The default medium font has a fixed height of 8px plus 2px below the baseline (for descenders); OGFX uses an extra 2px above to allow for diacritics. However, this additional 2px can cause glitches, and even 1px results in some minor clipping. Is there any way to resolve this, or does it mean redrawing (i.e. squashing) those characters for OGFX?

Links for reported glitches:
http://dev.openttdcoop.org/issues/1073
http://www.tt-forums.net/viewtopic.php?f=26&t=38122&p=997229# p997142

Attachments

Reported version: Version?
Operating system: All


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

Rubidium wrote:

Not without influencing the vertical spacing of the characters everywhere else in the game. What you're asking for is increasing the sprite font height by two. Thus in effect every window becomes 20% higher only due to a few characters.

Also adding extra spacing to this particular window where it overflows leaves us with other windows where such a thing might be needed as well and actually testing that will be pretty difficult/cumbersome.


This comment was imported from FlySpray: https://bugs.openttd.org/task/5084#comment10933

@DorpsGek
Copy link
Member Author

PaulC wrote:

It wouldn't be 20% because other factors such as line spacing would be unaffected; even an increase of 1px (<10%) would help, and at least prevent the clipping. OTOH, the overflow only seems to occur with the status bar at the bottom of the screen (at least, I've not seen it anywhere else). Windows already have enough height to cover the font, so they don't have this problem.

Attachments


This comment was imported from FlySpray: https://bugs.openttd.org/task/5084#comment10934

@DorpsGek
Copy link
Member Author

peter1138 wrote:

OpenGFX's font should be adjusted to the correct height for these accented characters.


This comment was imported from FlySpray: https://bugs.openttd.org/task/5084#comment11887

@DorpsGek
Copy link
Member Author

frosch closed the ticket.

Reason for closing: Won't implement


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

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

No branches or pull requests

1 participant