- applied patch from LuckAs for better multi-byte character spacing

This commit is contained in:
Mark Vejvoda
2011-05-25 16:51:31 +00:00
parent a1d80ae22f
commit 65ee439baf

View File

@@ -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 {