Didnt want to start a new thread, so i hope its ok if i hijack this one..
Am working on the code from the SVN, i have compiled the libs.
Am having an issue with the String class.
I have have the following functions.
//constructor to load the string with the required font
CText::CText()
{
// Font.LoadFromFile("cheeseburger.ttf");
// sf::String TextString(L"",Font);
}
//to plot the text on the screen
void CText::Plot(sf::RenderWindow& App, char text[10], int r, int g, int b, int x, int y, int size)
{
// Font.LoadFromFile("cheeseburger.ttf");
// sf::String TextString(L"",Font);
TextString.SetText(text);
TextString.SetSize(size);
TextString.SetColor(sf::Color(r,g,b));
TextString.SetPosition(x,y);
App.Draw(TextString);
}
When the font is loaded in the constructor, the text is not plotted clearly on the screen. The output is all blobby, looks like square.
The text is plotted clearly when i load the font into the string in the Plot function.
Does anyone else face this issue?