mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-17 20:52:36 +01:00
Replace freetype with stb_truetype in font examples (#2139)
* Replace freetype with stb_truetype in font example * Remove freetype
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user