Hi.
What is the process for changing the fonts in OTTD (alter existing fonts perhaps) for a specific language?
Alter existing fonts
Moderator: OpenTTD Developers
Alter existing fonts
-----
Chaney 'Jubilee' (Steam powered)
Chaney 'Jubilee' (Steam powered)
Re: Alter existing fonts
You mean use a different typeface?
The graphics baseset contains a sprite font which is the "classic" look, but it only supports languages written in the Latin alphabet.
Otherwise you can edit the config file openttd.cfg and set a font name for the small, medium, large, and mono fonts.
The graphics baseset contains a sprite font which is the "classic" look, but it only supports languages written in the Latin alphabet.
Otherwise you can edit the config file openttd.cfg and set a font name for the small, medium, large, and mono fonts.
Re: Alter existing fonts
So, when the language is changed in game options, where does openttd find the font to use?jfs wrote:The graphics baseset contains a sprite font which is the "classic" look, but it only supports languages written in the Latin alphabet.
EDIT: Or to be more precise:
How can i edit the sprite font contained in the baseset (i assume other sets - like z-base - have their own fonts inside?) for a specific language?jfs wrote:The graphics baseset contains a sprite font which is the "classic" look, but it only supports languages written in the Latin alphabet.
-----
Chaney 'Jubilee' (Steam powered)
Chaney 'Jubilee' (Steam powered)
Re: Alter existing fonts
if OpenTTD detects that your language uses characters not provided as a sprite in the baseset, it searches a system font (TTF) to use, or you can provide one in openttd.cfg (http://wiki.openttd.org/FAQ_troubleshooting#Windows)
A baseset can provide additional font glyph sprites for any unicode character via Action 12: https://newgrf-specs.tt-wiki.net/wiki/Action12
this should work for languages using non-latin alphabets such as japanese, but would be a lot of work for chinese characters.
it will, however, completely fail for writing systems where the shape of letters is influenced by surrounding letters, like arabic.
A baseset can provide additional font glyph sprites for any unicode character via Action 12: https://newgrf-specs.tt-wiki.net/wiki/Action12
this should work for languages using non-latin alphabets such as japanese, but would be a lot of work for chinese characters.
it will, however, completely fail for writing systems where the shape of letters is influenced by surrounding letters, like arabic.
Who is online
Users browsing this forum: No registered users and 11 guests