Webfont Smoothing and Antialiasing in Firefox and Opera

后端 未结 8 611
旧巷少年郎
旧巷少年郎 2020-11-28 18:26

I have custom-made web fonts used on my site. To style my rendering output, I used the following code:

//-webkit-text         


        
8条回答
  •  渐次进展
    2020-11-28 18:36

    ... in the body tag and these from the content and the typeface looks better in general...

    body, html {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    text-rendering: optimizeLegibility;
    text-rendering: geometricPrecision;
    font-smooth: always;
    
    font-smoothing: antialiased;
    -moz-font-smoothing: antialiased;
    -webkit-font-smoothing: antialiased;
    -webkit-font-smoothing: subpixel-antialiased;
    }
    
    
    #content {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    
    }
    

提交回复
热议问题