From d5a2b6bca9f9cc57dcca19962d5ba9b83d26da3e Mon Sep 17 00:00:00 2001 From: Frederico Linhares Date: Thu, 16 May 2024 14:22:35 -0300 Subject: refa Move BluCan initialization to BluCat folder --- src/blucat/font.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/blucat/font.cpp') diff --git a/src/blucat/font.cpp b/src/blucat/font.cpp index 4195b57..603dda1 100644 --- a/src/blucat/font.cpp +++ b/src/blucat/font.cpp @@ -16,7 +16,7 @@ #include "font.hpp" -#include "../core.hpp" +#include "core.hpp" namespace BluCat { @@ -24,7 +24,7 @@ namespace BluCat Font::Font(const char* font_path, int font_size) { FT_Error error; - error = FT_New_Face(cg_core.font_library, font_path, 0, &this->face); + error = FT_New_Face(core.font_library, font_path, 0, &this->face); if(error == FT_Err_Unknown_File_Format) throw std::invalid_argument( "The font file could be opened and read, but it appears that its font " "format is unsupported."); -- cgit v1.2.3