summaryrefslogtreecommitdiff
path: root/gfx.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-08-20 18:14:32 +0000
committertron <tron@openttd.org>2005-08-20 18:14:32 +0000
commitae49d487cc7cae0c0b47834aba94bdb801ba8c06 (patch)
tree637f2195ee283059cdbf3ca7e4fbfcf41df234b8 /gfx.c
parentc1f4acd4a0aa1f8811cb50add8fe244adac68526 (diff)
downloadopenttd-ae49d487cc7cae0c0b47834aba94bdb801ba8c06.tar.xz
(svn r2879) Major step twoards ISO-8859-15
Add several missing chars: - Š/š (S with hacek, all sizes) - Ž/ž (Z with hacek, all sizes) - Œ/œ (OE ligature, all sizes) - Ð/ð (eth, large font was missing) - Þ/þ (thorn, large font was missing) - º (male ordinal sign, all sizes) Also move Ÿ (Y with umlaut, all sizes) to the correct position in the charset To add some chars it was necessary to shuffle some OTTD specific chars (arrows, transport type markers) around
Diffstat (limited to 'gfx.c')
-rw-r--r--gfx.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gfx.c b/gfx.c
index 5c0c9b7a3..5bf45685a 100644
--- a/gfx.c
+++ b/gfx.c
@@ -1627,15 +1627,15 @@ void LoadStringWidthTable(void)
// 2 equals space.
for (i = 2; i != 226; i++) {
- *b++ = (i < 93 || i >= 129 || i == 98) ? GetSprite(i)->width : 0;
+ *b++ = (i < 93 || i > 113) && i != 116 && i != 117 && (i < 123 || i > 131) && (i < 151 || i > 153) && i != 155 ? GetSprite(i)->width : 0;
}
for (i = 226; i != 450; i++) {
- *b++ = (i < 317 || i >= 353) ? GetSprite(i)->width + 1 : 0;
+ *b++ = (i < 317 || i >= 354) && i != 367 && (i < 375 || i > 377) && i != 379 ? GetSprite(i)->width + 1 : 0;
}
for (i = 450; i != 674; i++) {
- *b++ = (i < 541 || i >= 577) ? GetSprite(i)->width + 1 : 0;
+ *b++ = (i < 541 || i >= 579) && i != 585 && i != 587 && i != 588 && (i < 590 || i > 597) && (i < 599 || i > 601) && i != 603 && i != 633 && i != 665 ? GetSprite(i)->width + 1 : 0;
}
}