Replace freetype with stb_truetype in font examples (#2139)

* Replace freetype with stb_truetype in font example

* Remove freetype
This commit is contained in:
Hugo Amnov
2020-05-11 02:44:14 +02:00
committed by GitHub
parent ca661f5127
commit 79321ffce2
6 changed files with 74 additions and 117818 deletions

View File

@@ -87,6 +87,10 @@ public:
, 0
);
// Initialize Imgui
// This initializes the same allocator used by stb_truetype, so must do that before creating the font manager
imguiCreate();
// Init the text rendering system.
m_fontManager = new FontManager(512);
m_textBufferManager = new TextBufferManager(m_fontManager);
@@ -186,8 +190,6 @@ public:
// Create a transient buffer for real-time data.
m_transientText = m_textBufferManager->createTextBuffer(FONT_TYPE_ALPHA, BufferType::Transient);
imguiCreate();
}
virtual int shutdown() override