How to render thin fonts more smoothly in CSS 3 on Windows?

前端 未结 10 805
你的背包
你的背包 2020-12-23 02:46

When I\'ve designed my web site in Adobe Flash Pro CS6, the font looks like this:

\"Font

10条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-23 02:53

    There's no single fix for this, as far as I'm aware. It's multiple fixes implemented to suit each browser, except IE. Give these a shot:

    For Chrome, and any other browser using webkit:

    -webkit-font-smoothing:antialiased !important;
    

    Place that in your html CSS, or for whatever elements you see fit. You can also add this along with the above:

    text-shadow:1px 1px 1px rgba(0,0,0,0.005);
    

    Experiment with different alpha values, but you should keep the shadow sizes as they are.

    I'm unaware of anything else you can do, but this should address the biggest problem with Chrome at the very least (plus other webkit browsers).

提交回复
热议问题