mirror of
https://github.com/glest/glest-source.git
synced 2025-09-30 01:18:58 +02:00
- added russian language (thanks Strannik)
- updated fonts to better handle non ascii languages (russian and ukraine display much better with more native fonts)
This commit is contained in:
@@ -49,8 +49,8 @@ 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
|
||||
i++;
|
||||
width+= (widths[87]); // This is the letter W which is a fairly wide character and good to use for spacing
|
||||
//i++;
|
||||
}
|
||||
else {
|
||||
width+= widths[str[i]];
|
||||
|
Reference in New Issue
Block a user