summaryrefslogtreecommitdiff
path: root/Runtime/GUI/Font.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-11-05 12:14:59 +0800
committerchai <chaifix@163.com>2021-11-05 12:14:59 +0800
commit6d5787d8da9ad1685864668dd4c3d6aa73a563db (patch)
treef4d28a553b13b369a580c482e187bcc4b42f39de /Runtime/GUI/Font.h
parentbe9870f5c1ba4f6ae8cd9764f1a8ed56ee81ddd5 (diff)
TextMeshGenerator
Diffstat (limited to 'Runtime/GUI/Font.h')
-rw-r--r--Runtime/GUI/Font.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Runtime/GUI/Font.h b/Runtime/GUI/Font.h
index cd546af..565fafc 100644
--- a/Runtime/GUI/Font.h
+++ b/Runtime/GUI/Font.h
@@ -31,10 +31,13 @@ namespace character
union Hash {
unsigned int hashCode;
+#pragma pack(1)
struct {
Unicode codepoint;
unsigned short size;//×ÖÌå´óС
};
+#pragma pack()
+
bool operator==(const Hash &other) const
{
return codepoint == other.codepoint && size == other.size;