- better character for multi-byte char width use (use a instead of W)

This commit is contained in:
Mark Vejvoda 2011-05-25 23:06:37 +00:00
parent 4c7d522b6b
commit a5e1d046dd
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ float FontMetrics::getTextWidth(const string &str) const {
}
//Treat 2 byte characters as spaces
if(str[i] < 0) {
width+= (widths[87]); // This is the letter W which is a fairly wide character and good to use for spacing
width+= (widths[97]); // This is the letter a which is a normal wide character and good to use for spacing
//i++;
}
else {