Basic Font integration.
This commit is contained in:
parent
ce11c52ae5
commit
72123bc333
36 changed files with 325 additions and 198 deletions
23
src/fonts/FontsManager.cpp
Normal file
23
src/fonts/FontsManager.cpp
Normal file
|
@ -0,0 +1,23 @@
|
|||
#include "FontsManager.h"
|
||||
|
||||
#include "FreeTypeFontEngine.h"
|
||||
#include "BasicFontEngine.h"
|
||||
|
||||
|
||||
FontsManager::FontsManager()
|
||||
: mFontEngine(std::make_unique<FreeTypeFontEngine>())
|
||||
{
|
||||
mFontEngine->initialize();
|
||||
}
|
||||
|
||||
std::unique_ptr<FontsManager> FontsManager::Create()
|
||||
{
|
||||
return std::make_unique<FontsManager>();
|
||||
}
|
||||
|
||||
IFontEngine* FontsManager::getFontEngine() const
|
||||
{
|
||||
return mFontEngine.get();
|
||||
}
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue