Fonts looks different in Firefox and Chrome

前端 未结 10 1041
时光取名叫无心
时光取名叫无心 2020-11-29 04:03

I am using Google Web Font\'s PT-sans

font-family: \'PT Sans\',Arial,serif;

but it looks different in Chrome and Firefox

Is there

10条回答
  •  一向
    一向 (楼主)
    2020-11-29 04:20

    i found this to be working great :

    -webkit-text-stroke: 0.7px;
    

    or

    -webkit-text-stroke: 1px rgba(0, 0, 0, 0.7);
    

    experiment with the "0,7" value to adjust to your needs. The lines are added where you define the bodys font.

    here is an example:

    body {
        font-size: 100%;
        background-color: #FFF;
        font-family: 'Source Sans Pro', sans-serif;
        margin: 0;
        font-weight: lighter;
        -webkit-text-stroke: 0.7px;
    

提交回复
热议问题