We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5940d25 commit e9b89b5Copy full SHA for e9b89b5
ReactCommon/react/renderer/textlayoutmanager/platform/ios/RCTAttributedTextUtils.mm
@@ -71,7 +71,8 @@ inline static UIFontWeight RCTUIFontWeightFromInteger(NSInteger fontWeight)
71
fontProperties.weight = textAttributes.fontWeight.has_value()
72
? RCTUIFontWeightFromInteger((NSInteger)textAttributes.fontWeight.value())
73
: NAN;
74
- fontProperties.sizeMultiplier = textAttributes.fontSizeMultiplier;
+ fontProperties.sizeMultiplier =
75
+ textAttributes.allowFontScaling.value_or(true) ? textAttributes.fontSizeMultiplier : 1;
76
77
return RCTFontWithFontProperties(fontProperties);
78
}
0 commit comments