- <<Back to the Openttd.cfg (OpenTTD configuration file)
small_font, medium_font and large_font ...
small_size, medium_size and large_size ...
small_aa, medium_aa and large_aa ...
... are some variables in the Openttd.cfg file.
In OpenTTD 0.5.0, Unicode has been introduced. This allows for support for languages which use non-ASCII characters, like Chinese or Russian, but it is also needed to properly display any language that contains non ASCII.
It is also possible to use different fonts in OpenTTD using this feature by using three strings in your openttd.cfg under misc:
small_font = medium_font = large_font =
Small fonts are used beneath vehicles in the vehicle lists, as the date on newspapers, and other places. Medium fonts are the majority of GUI text, town and station names, and window headers. Large Fonts are used as newspaper headings and on the endgame Score list.
Fill these out with fonts installed on your system and they will be displayed in the game.
There is also possibility to set font sizes (in px) for given font types. Be aware that most fonts make a poor small font, while other fonts may not make good medium or large sizes.
Because of poor small fonts, one should select bitmap font, because that is by its very nature done to be displayed small. Users of GNU/Linux systems may choose from variety range of bitmap fonts already installed with X server, such as 5x7.pcf.gz. These fonts are small and well rendered in terms of openttd. In Debian GNU/Linux and alike distributions, it is located in /usr/share/fonts/X11/misc/.
These fonts are located in the Debian package xfonts-base, and after unpacking the .deb by appropriate packaging software, you can access these fonts. However, we are unsure whether these fonts work on Windows.
One good TrueType font, though, is DejaVu Sans:
small_font = /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf small_size=10
Since r10166 it is possible to use anti-aliased fonts using the 32bpp blitter. Anti-aliasing is configurable per font with the following settings:
small_aa = medium_aa = large_aa =