1
Graphics / Writing text in other languages.
« on: January 10, 2017, 11:18:15 pm »
Hello, i am trying to write text in russian and romanian, but the letters are shown as " ? " , how cand i write in other languages whith different letters, not only latins ?
a part of my code :
a part of my code :
...
sf::Text menu[MAX_NUMBER_OF_ITEMS];
...
if (language == 0) { //romanian
menu[0].setString(L"Joacă");
menu[1].setString("Opțiuni");
menu[2].setString("Ieșire");
}
if (language == 1) { //russian
menu[0].setString("Играть");
menu[1].setString("Настройки");
menu[2].setString("Выити");
}
...
sf::Text menu[MAX_NUMBER_OF_ITEMS];
...
if (language == 0) { //romanian
menu[0].setString(L"Joacă");
menu[1].setString("Opțiuni");
menu[2].setString("Ieșire");
}
if (language == 1) { //russian
menu[0].setString("Играть");
menu[1].setString("Настройки");
menu[2].setString("Выити");
}
...