From ed78df90944bbe6b7de7308bda2bf3a7f1bc3de6 Mon Sep 17 00:00:00 2001 From: chai Date: Fri, 5 Nov 2021 18:10:01 +0800 Subject: *misc --- Runtime/GUI/Font.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Runtime/GUI/Font.h') 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 -- cgit v1.1-26-g67d0