Android手机可以字体缩放,为了避免排版错误,需要使得系统设置字体缩放后,app字体仍旧维持原来大小。关于 PixelRatio.fontscale
官方描述:
Returns the scaling factor for font sizes....If a font scale is not set, this returns the device pixel ratio.
那么我该如何指导返回的是缩放比例还是像素密度比例?
Android手机可以字体缩放,为了避免排版错误,需要使得系统设置字体缩放后,app字体仍旧维持原来大小。关于 PixelRatio.fontscale
官方描述:
Returns the scaling factor for font sizes....If a font scale is not set, this returns the device pixel ratio.
那么我该如何指导返回的是缩放比例还是像素密度比例?
3 回答2.2k 阅读✓ 已解决
1 回答1.1k 阅读✓ 已解决
1 回答783 阅读✓ 已解决
1 回答743 阅读✓ 已解决
1 回答807 阅读
1 回答976 阅读
1 回答858 阅读
直接给
Text
组件设置属性allowfontscaling
为false
就可以了文档:https://reactnative.cn/docs/t...