ascott1 / ethical-web-dev

A series of short books on ethical web development
https://ethicalweb.org
191 stars 11 forks source link

Font face weight #34

Closed contolini closed 8 years ago

contolini commented 8 years ago
@font-face {    
   font-family: MyWebFontItalic;
   src: local('My Web Font Italic'),
        url('/fonts/myfont-italic.woff2') format('woff2'),
        url('/fonts/myfont-italic.woff') format('woff'),
        url('/fonts/myfont-italic.ttf') format('ttf’),
        url('/fonts/myfont-italic.eot') format('eot');  
   font-weight: 700;    
   font-style: normal;        
 }

Shouldn't the italic font have the same weight as the regular font, 400?

https://github.com/ascott1/ethical-web-dev/blob/master/web-apps-that-work-everywhere/04-web-performance.md#optimizing-web-fonts

ascott1 commented 8 years ago

Bad 📋