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

Fails to render the text #3740

Closed
DorpsGek opened this issue Apr 6, 2010 · 2 comments
Closed

Fails to render the text #3740

DorpsGek opened this issue Apr 6, 2010 · 2 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 Apr 6, 2010

timnew opened the ticket and wrote:

I'm running OpenTTD on Windows 7. The language of Win 7 is English, but I set the default culture of the system as Simplified Chinese.
And the game fails to render the text on the GUI.
I have attached the screenshot in attachments

Attachments

Reported version: 1.0.0
Operating system: Windows


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

DorpsGek commented Apr 6, 2010

Rubidium wrote:

Let me first explain what OpenTTD exactly does.
Upon loading a translation it determines whether it has characters not covered by the default font. If this is the case it asks the operating system for an appropriate font. In your case OpenTTD's default font does not have Chinese characters and it asks Windows for a font to load.

Then OpenTTD tries to load the font the operating system, i.e. Windows, told it to use. In this case for some reasons the font Windows told OpenTTD to use cannot be loaded, which makes OpenTTD fall back on the default font that does not support Chinese characters.

We have tested this system in a Chinese, Japanese and Korean Windows XP where it worked. I would not know why it does not work in Windows 7.

You can tell OpenTTD to use another font by setting it using the "small_font", "medium_font" and "large_font" settings in openttd.cfg (see readme.txt where that file is).

Is there anything special about your Windows installation that you know about?


This comment was imported from FlySpray: https://bugs.openttd.org/task/3740#comment7815

@DorpsGek
Copy link
Member Author

DorpsGek commented May 3, 2010

Rubidium closed the ticket.

Reason for closing: Fixed

In r19753, or at least OpenTTD now tests whether the font can be loaded before returning it as a suitable font.


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

@DorpsGek DorpsGek closed this as completed May 3, 2010
@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