Fix up minimal dependency case and clang support.
This commit is contained in:
parent
925f0c3ccd
commit
1adc9272f8
17 changed files with 183 additions and 226 deletions
|
@ -1,12 +1,19 @@
|
|||
#include "FontsManager.h"
|
||||
|
||||
#ifdef HAS_FREETYPE
|
||||
#include "FreeTypeFontEngine.h"
|
||||
#else
|
||||
#include "BasicFontEngine.h"
|
||||
#endif
|
||||
|
||||
|
||||
FontsManager::FontsManager()
|
||||
: mFontEngine(std::make_unique<FreeTypeFontEngine>())
|
||||
{
|
||||
#ifdef HAS_FREETYPE
|
||||
mFontEngine = std::make_unique<FreeTypeFontEngine>();
|
||||
#else
|
||||
mFontEngine = std::make_unique<BasicFontEngine>();
|
||||
#endif
|
||||
mFontEngine->initialize();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue