Safari font-weight issue , text too bold

前端 未结 5 2045
生来不讨喜
生来不讨喜 2020-12-29 23:48

When I apply a font-weight:bold style, the look of the font is too bold in Safari when compared to other browsers. I tried below css as suggested in some site b

5条回答
  •  臣服心动
    2020-12-30 00:19

    For rendering bold text consistently across browsers, your font should explicitly contain bold characters. Otherwise, browsers probably try to make bold variants of characters based on their normal variants, and results are inconsistent across browsers since they likely have different algorithms for such conversion.

    Also note that text rendering may be different on different platforms on system level (e.g. Windows, Mac OS). Such differences are OK and do not typically need to be fixed.

    See also topic about -webkit-font-smoothing property.

提交回复
热议问题