-
-
Notifications
You must be signed in to change notification settings - Fork 947
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
custom font settings in openttd.cfg seem to be ignored #7126
Comments
They work for me on Windows. It's probably a Mac-only issue. |
Do you have these fonts installed, to start with? |
Yes I have the fonts installed. I even tried installing custom fonts in ~/Library/Fonts, same thing. |
Thanks for confirming that. |
Confirmed on Linux. Some fonts work, not all do. Font is requested, and does not error, but then it seems to fallback to another font instead. This is caused by missed glyphs in the typeface. If just a single glyph is missing it will fall back to a default font, however, there is no warning that this has happened! "Polish Złoty" is in the English translation and seems to trip up most typefaces I have. |
Hmm, sorry, not confirmed at all. For me, if a typeface doesn't work, it falls back to a default font, not the bitmap fonts. Which version of OpenTTD are you using? Is it self-compiled or downloaded from us? |
I wonder if simply the OS X build is built without freetype support...? Confirmed! |
In openttd.cfg there are custom font settings:
small_font = DejaVu Sans
medium_font = DejaVu Sans, Bold
large_font = DejaVu Serif, Bold
mono_font = DejaVu Sans Mono, Bold
small_size = 12
medium_size = 12
large_size = 16
mono_size = 12
The current nightly build ignores these settings (only in Mac OSX?), resulting in very tiny fonts in 'Map of world' and in the 'Trains' dialog.
The wiki mentions these settings here https://wiki.openttd.org/FAQ_troubleshooting#My_User_Interface_is_too_small_to_read_.2F_My_font_is_unreadable_or_faulty as a solution to tiny unreadable fonts. I have tried editing these settings with other fonts, and with the full path to the fonts, but that didn't help.
The resulting tiny fonts are only 4 or 5 pixels high, making them unreadable on 1920x1200 resolution. (I have a retina Mac.)
The text was updated successfully, but these errors were encountered: