Text rendering working ok.

This commit is contained in:
James Grogan 2022-11-15 17:16:38 +00:00
parent eef93efc29
commit 4849d83fcf
10 changed files with 127 additions and 42 deletions

View file

@ -20,8 +20,12 @@ IFontEngine* FontsManager::getFontEngine() const
return mFontEngine.get();
}
FontGlyph* FontsManager::getGlyph(char c)
FontGlyph* FontsManager::getGlyph(const std::string& fontFace, int size, char c)
{
auto path = std::filesystem::path("truetype/msttcorefonts/arial.ttf");
mFontEngine->loadFontFace(path, size);
auto iter = mGlyphs.find(c);
if(iter != mGlyphs.end())
{