summaryrefslogtreecommitdiff
path: root/Runtime/GUI/Font.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-11-02 09:30:25 +0800
committerchai <chaifix@163.com>2021-11-02 09:30:25 +0800
commitb7511abf1a1f302b5c7ebf50faaf65b62d7bb6ed (patch)
tree7265398e248b55ede4b3550ec47660be334bf1ff /Runtime/GUI/Font.h
parenta11097e51fcaef4488218411f2d7b3ee34550000 (diff)
* TextMesh
Diffstat (limited to 'Runtime/GUI/Font.h')
-rw-r--r--Runtime/GUI/Font.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/Runtime/GUI/Font.h b/Runtime/GUI/Font.h
index 344cc00..9fea14e 100644
--- a/Runtime/GUI/Font.h
+++ b/Runtime/GUI/Font.h
@@ -15,10 +15,10 @@
//https://github.com/kaienfr/Font
struct Character {
- unsigned int atlas; // atlas索引
- Rect position; // 在altas里的位置
+ unsigned int atlas; // atlas索引
+ Rect position; // 在altas里的位置
Vector2 bearing; // 左上角相对于原点的偏移
- unsigned int advance; // 总宽,算上了间隔
+ unsigned int advance; // 总宽,算上了间隔
};
namespace character
@@ -42,6 +42,12 @@ namespace character
};
}
+struct UnicodeString
+{
+ character::Codepoint* str;
+ int length;
+};
+
namespace std
{
template <>