0 Members and 1 Guest are viewing this topic.
I think this error may occur if you use a string with the default sfml font. Try to use another font, say Arial.ttf.Code: [Select] sf::Font font; font.LoadFromFile("Arial.ttf", 32)); sf::String text; text.SetFont("Arial.ttf"); text.SetText("My String");In this case the font file Arial.ttf must be in the same folder with your executable file.
sf::Font font; font.LoadFromFile("Arial.ttf", 32)); sf::String text; text.SetFont("Arial.ttf"); text.SetText("My String");
sf::Font font; font.LoadFromFile("Arial.ttf", 32)); sf::String text("", font); text.SetText("My String");