mirror of
https://github.com/glest/glest-source.git
synced 2025-02-24 19:52:25 +01:00
- 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
|
//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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user