From 65ee439baf370a5c224d5cab6b51c39508ca1c09 Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Wed, 25 May 2011 16:51:31 +0000 Subject: [PATCH] - applied patch from LuckAs for better multi-byte character spacing --- source/shared_lib/sources/graphics/font.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/shared_lib/sources/graphics/font.cpp b/source/shared_lib/sources/graphics/font.cpp index 86de62595..893f9b0a2 100644 --- a/source/shared_lib/sources/graphics/font.cpp +++ b/source/shared_lib/sources/graphics/font.cpp @@ -49,7 +49,7 @@ float FontMetrics::getTextWidth(const string &str) const { } //Treat 2 byte characters as spaces if(str[i] < 0) { - width+= widths[32]; + width+= widths[87]; // This is the letter W which is a fairly wide character and good to use for spacing i++; } else {