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

Multi-line strings not drawn properly with DrawString() #2846

Closed
DorpsGek opened this issue Apr 19, 2009 · 1 comment
Closed

Multi-line strings not drawn properly with DrawString() #2846

DorpsGek opened this issue Apr 19, 2009 · 1 comment
Labels
component: interface This is an interface issue flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)

Comments

@DorpsGek
Copy link
Member

Alberth opened the ticket and wrote:

Strings with embedded new-lines are not rendered properly, because DrawString() does not reset line-width when encountering a {} in the string. Currently there are two known points in the program where this problem occurs (see also attached images):

- At the bottom of most graph windows
- At the bottom of the refit window

Proposed solution is to switch to using DrawStringMultiLine().

Attachments

Reported version: trunk
Operating system: All


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

Rubidium closed the ticket.

Reason for closing: Deferred

The known multiline strings drawn with DrawString are solved. For the rest there's a warning trying to catch the others.
Eventually all strings will be drawn as multiline strings.


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

@DorpsGek DorpsGek added component: interface This is an interface issue flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) bug labels Apr 6, 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