收藏
回答

使用自定义字体,设置加粗样式,在某些情况下表现异常

代码片段:https://developers.weixin.qq.com/s/UmGf10mP79jB

真机预览可以看到,在某些组件层级结构下,字体加粗后颜色异常(变浅)。如下图:

符号字体文件:https://auction-cdn.nocode.com/nc-symbol.ttf?t=9

参考规范: “Although the practice is not well-loved by typographers, bold faces are often synthesized by user agents for families that lack actual bold faces. For the purposes of font matching, these faces must be treated as if they exist within the family. Authors can explicitly avoid this behavior by using the font-synthesis property.” ( https://www.w3.org/TR/css-fonts-4/#missing-weights




回答关注问题邀请回答
收藏

1 个回答

  • Cjiang
    Cjiang
    2020-07-22

    你好,未复现问题,麻烦提供下出现问题的具体机型,微信版本号,基础库版本号,系统版本号。

    2020-07-22
    有用
    回复 1
    • yan
      yan
      2020-07-22
      Iphone X, IOS(13.5.1),Wechat(7.0.14),SDK(2.12.0)
      2020-07-22
      回复
登录 后发表内容
问题标签