Text rendering working ok.
This commit is contained in:
parent
eef93efc29
commit
4849d83fcf
10 changed files with 127 additions and 42 deletions
|
@ -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())
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue