summaryrefslogtreecommitdiff
path: root/Editor/EditorMain.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Editor/EditorMain.cpp')
-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)