diff options
author | chai <chaifix@163.com> | 2021-11-05 18:10:01 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-11-05 18:10:01 +0800 |
commit | ed78df90944bbe6b7de7308bda2bf3a7f1bc3de6 (patch) | |
tree | a392ec71c55b5d83d0b7095039304aaca4bc06d5 /Runtime/GUI/Font.h | |
parent | 2b9621a46288532b352b7838f96aca80f971e3d1 (diff) |
*misc
Diffstat (limited to 'Runtime/GUI/Font.h')
-rw-r--r-- | Runtime/GUI/Font.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Runtime/GUI/Font.h b/Runtime/GUI/Font.h index df0bc7b..4bcc70b 100644 --- a/Runtime/GUI/Font.h +++ b/Runtime/GUI/Font.h @@ -29,9 +29,9 @@ namespace character typedef unsigned int Unicode; // unicode codepoint(BMP,U+0000至U+FFFF) #endif +#pragma pack(1) union Hash { unsigned int hashCode; -#pragma pack(1) struct { Unicode codepoint; unsigned short size;//字体大小 @@ -66,11 +66,11 @@ namespace std struct GlyphAtals { int index; - Texture* altas; // 贴图 - int width, height; // 尺寸 + Texture* altas; // 贴图 + int width, height; // 尺寸 Vector2 cursor; // 游标,从左上角(0,0)开始 - int rowHeight; // 当前行的高度 + int rowHeight; // 当前行的高度 }; struct TextGeneratingSettings |