苹方字体PingFang-SC-Bold比Medium要小?!
上次的小程序,无意间发现字体有问题。就是PingFang-SC-Bold 竟然不如 PingFang-SC-Medium!效果图如下:
或者直接复制下方代码粘贴到小程序中保存即可看到效果上图的效果。
代码片段:
< view class = 'fonts' > < view style = 'font-family:PingFang-SC-Bold;' >字体 PingFang-SC-Bold</ view > < view style = 'font-family:PingFang-SC-Medium;' >字体 PingFang-SC-Medium;</ view > < view style = 'font-family:PingFang-SC-Regular;' >字体 PingFang-SC-Regular;</ view > < view style = 'font-family:PingFang-SC-light;' >字体 PingFang-SC-light</ view > < view style = '' >默认系统字体</ view > < view style = 'font-weight:300' >默认系统字体 300</ view > < view style = 'font-weight:400' >默认系统字体 400</ view > < view style = 'font-weight:500' >默认系统字体 500</ view > < view style = 'font-weight:600' >默认系统字体 600</ view > < view style = 'font-weight:700' >默认系统字体 700</ view > < view style = 'font-weight:800' >默认系统字体 800</ view > < view style = 'font-weight:900' >默认系统字体 900</ view > </ view > |
弱弱的问下:这个问题要怎么解决,明明Bold比Medium粗,怎么结果翻车了?