tweak plate name location for Mac and Linux

This commit is contained in:
SoftFever
2023-04-04 21:36:44 +08:00
parent 8640025ef8
commit 26daac8958
3 changed files with 10 additions and 2 deletions
+3 -1
View File
@@ -22,6 +22,7 @@ wxFont Label::sysFont(int size, bool bold)
return font;
}
wxFont Label::Head_48;
wxFont Label::Head_32;
wxFont Label::Head_24;
wxFont Label::Head_20;
wxFont Label::Head_18;
@@ -55,6 +56,8 @@ void Label::initSysFont()
printf("add font of HarmonyOS_Sans_SC_Regular returns %d\n", result);
#endif
Head_48 = Label::sysFont(48, true);
Head_32 = Label::sysFont(32, true);
Head_24 = Label::sysFont(24, true);
Head_20 = Label::sysFont(20, true);
Head_18 = Label::sysFont(18, true);
@@ -65,7 +68,6 @@ void Label::initSysFont()
Head_12 = Label::sysFont(12, true);
Head_10 = Label::sysFont(10, true);
Head_48 = Label::sysFont(48, true);
Body_16 = Label::sysFont(16, false);
Body_15 = Label::sysFont(15, false);
Body_14 = Label::sysFont(14, false);
+2 -1
View File
@@ -25,6 +25,8 @@ private:
wxColour color;
public:
static wxFont Head_48;
static wxFont Head_32;
static wxFont Head_24;
static wxFont Head_20;
static wxFont Head_18;
@@ -35,7 +37,6 @@ public:
static wxFont Head_12;
static wxFont Head_10;
static wxFont Head_48;
static wxFont Body_16;
static wxFont Body_15;
static wxFont Body_14;