summaryrefslogtreecommitdiff
path: root/Editor
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-11-01 12:19:36 +0800
committerchai <chaifix@163.com>2021-11-01 12:19:36 +0800
commit4dead522e513ffd326101b790b2129595f72ff42 (patch)
tree9c1cbc8169f524a36e6dbb4a43af7728e15fefe7 /Editor
parent44d6c41e5e586572de08c72c358aed9100a30353 (diff)
* TextGenerator -> Font
Diffstat (limited to 'Editor')
-rw-r--r--Editor/EditorMain.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/Editor/EditorMain.cpp b/Editor/EditorMain.cpp
index 45ac81a..187df1c 100644
--- a/Editor/EditorMain.cpp
+++ b/Editor/EditorMain.cpp
@@ -9,7 +9,7 @@
#include "Editor/Win/Win.h"
#include "Runtime/Threading/Thread.h"
-#include "Runtime/GUI/TextGenerator.h"
+#include "Runtime/GUI/Font.h"
using namespace LuaBind;
@@ -25,10 +25,9 @@ void TestFont()
setting.padding = 5;
setting.atlasSize = Internal::Vector2(512, 512);
- TextGenerator::Instance()->Setup(setting);
+ Font::Instance()->Setup(setting);
auto content = L"abcdf与电子计算机的区别 与电子计算机的最大区别在于: 只是简单的计算工具,有些机型具备函数计算功能,有些机型具备一定的贮存功能,但一般只能存储几组数据。计算机则具备复杂存贮功能、控制功能,更加";
- TextGenerator::Instance()->RenderCharacters((character::Codepoint*)content, wcslen(content), 14);
-
+ Font::Instance()->RenderCharacters((character::Codepoint*)content, wcslen(content), 14);
}
int BeforeMainLoop(lua_State* L)