From e6637b82de5d40d6f760b189f105bab022087126 Mon Sep 17 00:00:00 2001 From: "pengfei.zhou" Date: Thu, 12 Aug 2021 16:00:38 +0800 Subject: [PATCH] iOS:fix when text font is customized,set fontStyle cause font change to system font --- doric-iOS/Pod/Classes/Shader/DoricTextNode.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doric-iOS/Pod/Classes/Shader/DoricTextNode.m b/doric-iOS/Pod/Classes/Shader/DoricTextNode.m index e1abc1ef..acfc84c3 100644 --- a/doric-iOS/Pod/Classes/Shader/DoricTextNode.m +++ b/doric-iOS/Pod/Classes/Shader/DoricTextNode.m @@ -111,7 +111,7 @@ - (void)blendView:(UILabel *)view forPropName:(NSString *)name propValue:(id)pro if (fontDescriptor) { font = [UIFont fontWithDescriptor:fontDescriptor size:0]; } else { - font = [UIFont systemFontOfSize:view.font.pointSize]; + font = [UIFont fontWithName:font.fontName size:font.pointSize]; } view.font = font; } else if ([name isEqualToString:@"maxWidth"]) {