From 241e09c2717a925fc8aa1c4303961b13b9b7dff4 Mon Sep 17 00:00:00 2001 From: Braden Obrzut Date: Wed, 1 Sep 2010 22:26:07 +0000 Subject: [PATCH] - Fixed: font monospacing didn't apply to the space character. SVN r2666 (trunk) --- src/g_shared/sbarinfo.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/g_shared/sbarinfo.cpp b/src/g_shared/sbarinfo.cpp index 83f9e9bef..29ea9774b 100644 --- a/src/g_shared/sbarinfo.cpp +++ b/src/g_shared/sbarinfo.cpp @@ -1349,7 +1349,10 @@ public: { if(*str == ' ') { - ax += font->GetSpaceWidth(); + if(script->spacingCharacter == '\0') + ax += font->GetSpaceWidth(); + else + ax += font->GetCharWidth((int) script->spacingCharacter); str++; continue; }