Im trying to create my own font, but since I added the font part it gives me this error :
1>sfml.obj : error LNK2001: unresolved external symbol "private: static unsigned int * sf::Font::ourDefaultCharset" (?ourDefaultCharset@Font@sf@@0PAIA)
Code
#include <SFML/Graphics.hpp>
#include <SFML/System.hpp>
#include <iostream>
class Debug
{
private:
sf::RenderWindow& Render;
sf::String Text;
sf::Font IDK;
public:
Debug(sf::RenderWindow& app);
void Draw();
};
Debug::Debug(sf::RenderWindow& app) : Render(app)
{
if (!IDK.LoadFromFile("arial.ttf"))
{
std::cout<<"Cannot load font !";
}
Text.SetText("FPS :");
Text.SetFont(sf::Font::GetDefaultFont());
Text.SetSize(10);
Text.SetPosition(5.f, 5.f);
Text.SetColor(sf::Color(0,0,0,255));
}
void Debug::Draw()
{
Render.Draw(Text);
}
This code is called by a sfml.cpp
the IDK part is cause I thought it may had to do something with the name.