diff options
author | peter1138 <peter1138@openttd.org> | 2006-11-16 22:05:33 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2006-11-16 22:05:33 +0000 |
commit | 1a4f1c8177f7ee351cb0096e3456d055b97dc60a (patch) | |
tree | 4fb6c0fac873efffc85cef437baa70d50d51fdfb /table/unicode.h | |
parent | 40d647ddde652bb8f1c7b4215279cc82d01ca38f (diff) | |
download | openttd-1a4f1c8177f7ee351cb0096e3456d055b97dc60a.tar.xz |
(svn r7182) -Feature: Merge utf8 branch. This brings us support for Unicode/UTF-8 and the option for fonts rendered by FreeType. Language changes to come.
Diffstat (limited to 'table/unicode.h')
-rw-r--r-- | table/unicode.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/table/unicode.h b/table/unicode.h new file mode 100644 index 000000000..2bbd6624c --- /dev/null +++ b/table/unicode.h @@ -0,0 +1,21 @@ +/* $Id$ */ + + +typedef struct DefaultUnicodeMapping { + WChar code; ///< Unicode value + byte key; ///< Character index of sprite +} DefaultUnicodeMapping; + + +/* Default unicode mapping table for sprite based glyphs. + * This table allows us use unicode characters even though the glyphs don't + * exist, or are in the wrong place, in the standard sprite fonts. + * This is not used for FreeType rendering */ + +static DefaultUnicodeMapping _default_unicode_map[] = { + { 0x010D, 0x63 }, /* Small letter c with caron */ + { 0x0160, 0xA6 }, /* Capital letter s with caron */ + { 0x0161, 0xA8 }, /* Small letter s with caron */ + { 0x017E, 0xB8 }, /* Small letter z with caron */ + { 0x20AC, 0xA4 }, /* Euro symbol */ +}; |