Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
custom font settings in openttd.cfg seem to be ignored #7126
In openttd.cfg there are custom font settings:
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.)
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.
I have just tested with 1.8.0 again, and this works as documented (though size 24 is huge ;-).
I have also noticed that when completely removing openttd.cfg, then version 1.8.0 will generate a new one with empty font lines, whereas the nightly build generates a new openttd.cfg without any of the font configuration lines.
Please let me know if I can do anything else to help this issue (log files? debug options?). I have MacOS 10.14.3 Mojave.