diff --git a/.gitignore b/.gitignore index f1178ca..e5f0ffd 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,6 @@ .vscode/ build/ -out/ +lib/ *.elf *.nacp *.nro \ No newline at end of file diff --git a/Plutonium/include/pu/ttf/ttf_Font.hpp b/Plutonium/include/pu/ttf/ttf_Font.hpp index ec63f79..a733bb6 100644 --- a/Plutonium/include/pu/ttf/ttf_Font.hpp +++ b/Plutonium/include/pu/ttf/ttf_Font.hpp @@ -79,7 +79,7 @@ namespace pu::ttf { return this->font_size; } - sdl2::Font FindValidFontFor(const char ch); + sdl2::Font FindValidFontFor(const Uint16 ch); std::pair GetTextDimensions(const std::string &str); sdl2::Texture RenderText(const std::string &str, const ui::Color clr); }; diff --git a/Plutonium/source/pu/ttf/ttf_Font.cpp b/Plutonium/source/pu/ttf/ttf_Font.cpp index 875b4d2..d550547 100644 --- a/Plutonium/source/pu/ttf/ttf_Font.cpp +++ b/Plutonium/source/pu/ttf/ttf_Font.cpp @@ -57,8 +57,8 @@ namespace pu::ttf { } } - sdl2::Font Font::FindValidFontFor(const char ch) { - for(auto &[idx, font] : this->font_faces) { + sdl2::Font Font::FindValidFontFor(const Uint16 ch) { + for(const auto &[idx, font] : this->font_faces) { if(TTF_GlyphIsProvided(font->font, ch)) { return font->font; }