Unicode

出自OpenTTD 运输大亨

跳转到: 导航, 搜索

In OpenTTD 0.5.0, Unicode has been introduced. This allows for support for languages which use non-ASCII characters, like Chinese or Russian.

It is also possible to use different fonts in OpenTTD using this feature 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 is 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.

small_size =
medium_size =
large_size =

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.

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 =
个人工具