mirror of
https://github.com/glest/glest-source.git
synced 2025-08-27 09:54:26 +02:00
- better character for multi-byte char width use (use a instead of W)
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user