- better character for multi-byte char width use (use a instead of W)
This commit is contained in:
parent
4c7d522b6b
commit
a5e1d046dd
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue