Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - foulehistory

Pages: [1]
1
General / Load Font
« on: September 11, 2022, 12:45:18 am »
Hello, I use jetbrains rider.
I can't load any font in my project
Quote
    sf::Font font;
    if (font.loadFromFile("C:\\Windows\\Fonts\\Arial.ttf"))
    {
        isValid = true;
        currentText = sf::Text("Hello World", font, 24);
        Debug::Log("Load font aerial.ttf");
    }
    else
    {
        isValid = false;
        currentText = sf::Text("Hello World", font, 24);
        Debug::Log("Can't Load font aerial.ttf");
    }

and I really don't know why they don't want to, I have no error message, just the function returns false

Pages: [1]
anything