mirror of
https://github.com/glest/glest-source.git
synced 2025-08-29 10:49:48 +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
|
//Treat 2 byte characters as spaces
|
||||||
if(str[i] < 0) {
|
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++;
|
//i++;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Reference in New Issue
Block a user