- 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:
Mark Vejvoda
2011-05-25 19:03:22 +00:00
parent 65ee439baf
commit 879aaa7fe8
4 changed files with 172 additions and 24 deletions

View File

@@ -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]];