diff --git a/implementations/Crafter.Graphics-Font.cpp b/implementations/Crafter.Graphics-Font.cpp index efcb5a5..cc10403 100644 --- a/implementations/Crafter.Graphics-Font.cpp +++ b/implementations/Crafter.Graphics-Font.cpp @@ -28,21 +28,18 @@ import std; using namespace Crafter; Font::Font(const std::filesystem::path& fontFilePath) { - std::cout << "Tes3t" << std::endl; // 1. Load the font file into memory std::ifstream fontFile("inter.ttf", std::ios::binary | std::ios::ate); if (!fontFile.is_open()) { std::cerr << "Failed to open font file\n"; } - std::cout << "Test" << std::endl; std::streamsize size = fontFile.tellg(); fontFile.seekg(0, std::ios::beg); fontBuffer.resize(size); if (!fontFile.read((char*)fontBuffer.data(), size)) { std::cerr << "Failed to read font file\n"; } - std::cout << size << std::endl; // 2. Initialize the font if (!stbtt_InitFont(&font, fontBuffer.data(), stbtt_GetFontOffsetForIndex(fontBuffer.data(), 0))) {