iOS:fix when text font is customized,set fontStyle cause font change to system font
This commit is contained in:
parent
1996ec2ed7
commit
e6637b82de
@ -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"]) {
|
||||
|
Reference in New Issue
Block a user