React Native 0.76 renders bold text different from earlier versions on iOS - Stack Overflow

Previously I've been able to adjust the font weight without specifying the "-Bold" font

Previously I've been able to adjust the font weight without specifying the "-Bold" font family, but by just setting an appropriate font weight.

After upgrading, it's not choosing the font based on the width, even though that's the intended behavior according to the docs: /docs/text-style-props#fontweight

On Android it works as expected.

Here's my testing code:

          <Text
            style={[
              { fontFamily: 'Chivo-Bold', fontSize: 31 },
              { fontSize: 32, lineHeight: 35, fontWeight: '700', letterSpacing: -0.5 },
            ]}
          >
            Aasd sadasdƒ Sg
          </Text>
          <Text
            style={[
              { fontFamily: 'Chivo-Regular', fontSize: 31 },
              { fontSize: 32, lineHeight: 35, fontWeight: '700', letterSpacing: -0.5 },
            ]}
          >
            Aasd sadasdƒ Sg
          </Text>

Here's how it looks in RN 0.75 and 0.71 without New Architecture

Here's how it looks in RN 0.76 with New Architecture

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745666987a4639178.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信