Files
amethyst/source/iron/font.cpp
tobid7 28d2e291b3 Add color class
Add Palladium Unique and Shared defs
Make stb_image an internal dependency
Start some work on font loader
2025-12-07 18:08:36 +01:00

24 lines
623 B
C++

#include <amethyst/iron.hpp>
namespace Amy {
void Iron::Font::LoadBMF(ksr path) {}
void Iron::Font::LoadTTF(ksr path, int size) {}
void Iron::Font::pMakeAtlas(bool final, vec<uc>& font_tex, int texszs,
Texture* tex) {
tex->Load(font_tex, texszs, texszs);
Textures.push_back(tex);
}
Iron::Font::Codepoint& Iron::Font::GetCodepoint(ui cp) {
// Check if codepoijt exist or return a static invalid one
auto res = pCodeMap.find(cp);
if (res == pCodeMap.end()) {
static Codepoint invalid;
invalid.Valid = false;
return invalid;
}
return res->second;
}
} // namespace Amy