JBR-4084 Default font '. AppleSystemUIFont' does not have bold weight on Chinese characters

(cherry picked from commit 4fde082d53)
(cherry picked from commit dc1806aa60)
This commit is contained in:
Dmitry Batrak
2021-12-06 19:06:29 +03:00
committed by jbrbot
parent 8498bcb9cf
commit a82099473d

View File

@@ -83,10 +83,11 @@ static NSString* uiBoldName = nil;
(uiBoldName != nil && [name isEqualTo:uiBoldName])) {
if (style & java_awt_Font_BOLD) {
nsFont = [NSFont boldSystemFontOfSize:1.0];
nsFallbackBase = [NSFont fontWithName:@"LucidaGrande-Bold" size:1.0];
} else {
nsFont = [NSFont systemFontOfSize:1.0];
nsFallbackBase = [NSFont fontWithName:@"LucidaGrande" size:1.0];
}
nsFallbackBase = [NSFont fontWithName:@"Lucida Grande" size:1.0];
#ifdef DEBUG
NSLog(@"nsFont-name is : %@", nsFont.familyName);
NSLog(@"nsFont-family is : %@", nsFont.fontName);