Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

@font-face giving ultra-heavy font weight and/or bad anti-aliasing

I found an open font I liked (Crete Round) and designed some screens in Photoshop with it. When it came time to set up the CSS, I tried using both Google Fonts and fontsquirrel.com's downloadable "kit" (a zip file with four different types of fonts and a ready-made stylesheet), but both gave me strange results on Mac.

Photoshop — What I want it to look like:

enter image description here

Yuck — Chrome (and Safari) on Mac using an @font-face kit from fontsquirrel.com:

enter image description here

Chrome (and Safari) on Mac using Google Fonts (basically identical):

enter image description here

GOOD —Chrome on Windows (fontsquirrel):

enter image description here

GOOD — Hack. I found out that with any opacity (not text color alpha) less than 1.0, Chrome gave me good results (but Safari was still bad.)

Chrome on Mac using fontsquirrel, with opacity:0.999;:

enter image description here

Does anyone have any ideas on what is going on here, or what I might be doing wrong?

like image 884
Nicole Avatar asked Jun 25 '12 06:06

Nicole


2 Answers

I don't think you are doing anything wrong. I also don't think there is a way around it, other than to use images instead of text where the style is absolutely crucial.

I found THIS LINK which discusses rendering engines on different operating systems (also taking different browsers into consideration).

I hope this helps!

like image 55
Danny Avatar answered Sep 28 '22 07:09

Danny


try

html { -webkit-font-smoothing: antialiased; }

like image 35
Brett Avatar answered Sep 28 '22 07:09

Brett