C++, SFML - Не удалось загрузить font
#ifndef BUTTON_HPP
#define BUTTON_HPP
#include <SFML/Graphics.hpp>
namespace sf{
class Button : public sf::Drawable{
public:
Button(){
defaultButton();
defaultFont();
}
void setSize(int width, int height){
button.setSize(sf::Vector2f(width, height));
}
void setPosition(int x, int y){
button.setPosition(x, y);
}
void setFillColor(const Color& color){
button.setFillColor(sf::Color(color));
}
void setOutlineThickness(int a){
button.setOutlineThickness(a);
button.move(a, a);
}
private:
void defaultButton(){
button.setSize(sf::Vector2f(80, 30));
button.setFillColor(sf::Color(173, 173, 173));
button.setOutlineThickness(1);
button.setOutlineColor(sf::Color::Black);
button.setPosition(1, 1);
}
void defaultFont(){
font.loadFromFile("Fonts/font.ttf");
}
void draw(sf::RenderTarget &target, sf::RenderStates states) const{
target.draw(button);
}
sf::Font font;
sf::Text text;
sf::RectangleShape button;
};
}
#endif // BUTTON_HPP
Ощибка: Failed to load font "Fonts/font.ttf" (failed to create the font face)
Чё делать?