diff options
author | rubidium <rubidium@openttd.org> | 2008-11-24 18:53:17 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-11-24 18:53:17 +0000 |
commit | fea78fbfbb2bfe5c6ddf90adb811eb60f4ecfc50 (patch) | |
tree | ead76c1aeb888d0a95a040f598f2614ff0ad201e /src/strgen/strgen.h | |
parent | 6878b181c7371ecc4af39eef6b01b710cc9f088b (diff) | |
download | openttd-fea78fbfbb2bfe5c6ddf90adb811eb60f4ecfc50.tar.xz |
(svn r14618) -Feature: when the chosen language isn't supported by the current font, try to find a font that does and use that instead. Thanks to glx/michi_cc for the Windows implementation.
Diffstat (limited to 'src/strgen/strgen.h')
-rw-r--r-- | src/strgen/strgen.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/strgen/strgen.h b/src/strgen/strgen.h index a38b1760d..93253259f 100644 --- a/src/strgen/strgen.h +++ b/src/strgen/strgen.h @@ -14,7 +14,16 @@ struct LanguagePackHeader { uint16 offsets[32]; // the offsets byte plural_form; // plural form index byte text_dir; // default direction of the text - byte pad[2]; // pad header to be a multiple of 4 + /** + * Windows language ID: + * Windows cannot and will not convert isocodes to something it can use to + * determine whether a font can be used for the language or not. As a result + * of that we need to pass the language id via strgen to OpenTTD to tell + * what language it is in "Windows". The ID is the 'locale identifier' on: + * http://msdn.microsoft.com/en-us/library/ms776294.aspx + */ + uint16 winlangid; // windows language id + /* byte pad[0]; // pad header to be a multiple of 4 */ }; assert_compile(sizeof(LanguagePackHeader) % 4 == 0); |