From 2935819d4291af6335852420efac540fe7c2ede9 Mon Sep 17 00:00:00 2001 From: ShikiSuen Date: Mon, 10 Jan 2022 17:49:55 +0800 Subject: [PATCH] =?UTF-8?q?=E5=80=99=E9=81=B8=E7=AA=97=E6=A0=BC=EF=BC=9A?= =?UTF-8?q?=E8=AA=BF=E6=95=B4=E9=A0=90=E8=A8=AD=E5=AD=97=E5=9E=8B=E8=88=87?= =?UTF-8?q?=E5=AD=97=E8=99=9F=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/CandidateUI/VTCandidateController.m | 4 ++-- Source/InputMethodController.mm | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Source/CandidateUI/VTCandidateController.m b/Source/CandidateUI/VTCandidateController.m index 933d1018..3b5f700a 100644 --- a/Source/CandidateUI/VTCandidateController.m +++ b/Source/CandidateUI/VTCandidateController.m @@ -47,8 +47,8 @@ if (self) { // populate the default values _keyLabels = @[@"1", @"2", @"3", @"4", @"5", @"6", @"7", @"8", @"9"]; - _keyLabelFont = [NSFont systemFontOfSize:14.0]; - _candidateFont = [NSFont systemFontOfSize:18.0]; + _keyLabelFont = [NSFont monospacedDigitSystemFontOfSize:14.0 weight:NSFontWeightMedium]; + _candidateFont = [NSFont systemFontOfSize:18.0 weight:NSFontWeightRegular]; } return self; } diff --git a/Source/InputMethodController.mm b/Source/InputMethodController.mm index 4606d272..ea8b3b5f 100644 --- a/Source/InputMethodController.mm +++ b/Source/InputMethodController.mm @@ -57,7 +57,7 @@ using namespace Formosa::Gramambular; using namespace OpenVanilla; // default, min and max candidate list text size -static const NSInteger kDefaultCandidateListTextSize = 16; +static const NSInteger kDefaultCandidateListTextSize = 18; static const NSInteger kMinKeyLabelSize = 10; static const NSInteger kMinCandidateListTextSize = 12; static const NSInteger kMaxCandidateListTextSize = 196; @@ -1268,8 +1268,8 @@ static double FindHighestScore(const vector& nodes, double epsilon) NSString *klFontName = [[NSUserDefaults standardUserDefaults] stringForKey:kCandidateKeyLabelFontName]; NSString *ckeys = [[NSUserDefaults standardUserDefaults] stringForKey:kCandidateKeys]; - gCurrentCandidateController.keyLabelFont = klFontName ? [NSFont fontWithName:klFontName size:keyLabelSize] : [NSFont systemFontOfSize:keyLabelSize]; - gCurrentCandidateController.candidateFont = ctFontName ? [NSFont fontWithName:ctFontName size:textSize] : [NSFont systemFontOfSize:textSize]; + gCurrentCandidateController.keyLabelFont = klFontName ? [NSFont fontWithName:klFontName size:keyLabelSize] : [NSFont monospacedDigitSystemFontOfSize:keyLabelSize weight:NSFontWeightMedium]; + gCurrentCandidateController.candidateFont = ctFontName ? [NSFont fontWithName:ctFontName size:textSize] : [NSFont systemFontOfSize:textSize weight:NSFontWeightRegular]; NSMutableArray *keyLabels = [NSMutableArray arrayWithObjects:@"1", @"2", @"3", @"4", @"5", @"6", @"7", @"8", @"9", nil];