summaryrefslogtreecommitdiff
path: root/Runtime/Scripting/GUI
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-11-04 13:49:05 +0800
committerchai <chaifix@163.com>2021-11-04 13:49:05 +0800
commitd7c051cecf0db9056e94d5e80146aa0b066e606b (patch)
treeda7a96046faa3323d1171d782164d3aae50ce322 /Runtime/Scripting/GUI
parentd24f17b88d901b779c81c7434995675eb2a17429 (diff)
*text alignment
Diffstat (limited to 'Runtime/Scripting/GUI')
-rw-r--r--Runtime/Scripting/GUI/Font.bind.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Runtime/Scripting/GUI/Font.bind.cpp b/Runtime/Scripting/GUI/Font.bind.cpp
index 1928e0e..699b97f 100644
--- a/Runtime/Scripting/GUI/Font.bind.cpp
+++ b/Runtime/Scripting/GUI/Font.bind.cpp
@@ -137,7 +137,7 @@ LUA_BIND_IMPL_METHOD(Font, _GetCharacters)
WipeGLError();
- UITextMesh* tm = new UITextMesh(str, self, size, size + 3, TextAnchor_MiddleLeft, ETextAlignment::TextAlignment_Left, wordwrap, preferred);
+ UITextMesh* tm = new UITextMesh(str, self, size, size + 3, TextAnchor_UpperLeft, TextAlignment_Left, wordwrap, preferred);
tm->Draw();
return 0;