I’ve found the solution if you have ever used the font face technique and encountered an issue where the text looks bold on a Mac yet looks perfectly fine on Windows. It’s almost like the font size or weight is wrong. But, as you’re going to learn, that is not the issue.
As of 2023, I still encounter this CSS issue, specifically in Chrome on Mac. It’s only with certain fonts, but this issue doesn’t appear to have gone away entirely.
After spending at least 2 days finding a solution, I inspected the page and saw what default browser styles were being applied on a Mac. After changing every piece of CSS basically, I came across the -webkit-font-smoothing property, an annoying piece of code.
It appears that this property on Mac is troublesome for some font-faced fonts (for me, it was Avenir) as it makes the text bold, and I think it is due to the fact Mac already anti-aliases text and -webkit-font-smooth anti-aliases it even more.
Set the following in your stylesheet on whatever elements you are using font face on, and it fixes the issue:
-webkit-font-smoothing: antialiased; /* This needs to be set or some font faced fonts look bold on Mac in Chrome/Webkit based browsers. */
Update
Firefox as of version 25 now has a property of its own to fix the issue in Firefox, finally. See the bug report here.
-moz-osx-font-smoothing: grayscale; /* Fixes font bold issue in Firefox version 25+ on Mac */
This leaves us with the final fix for Webkit/Chrome and Firefox:
.fix-font {
-webkit-font-smoothing: antialiased; /* This needs to be set or some font faced fonts look bold on Mac in Chrome/Webkit based browsers. /
-moz-osx-font-smoothing: grayscale; / Fixes font bold issue in Firefox version 25+ on Mac */
}
Thanks a mill for that, great tip! Really was driving me crazy with that strange (Mac only) quirk with @font-face fonts!!
I could kiss you. Thanks so much!!!
YES!! Oh my goodness this has actually been driving me crazy for months now. THANK YOU!! haha.
hey wonderful
doesn’t seem to work for firefox… even -moz-font-smoothing…
do u know how to make it work?
–
thanks
Saved my life. Font face fonts are fucking annoying, it only seems to happen for certain font face fonts, most are okay. Thank you!
I love you!
YES!!!!! This was driving me nuts!
It worked for Safari 5.0.6 but not FF 9.0.1. But halfway there!
Haha, Firefox is a bit troublesome. I don’t have a solution for that yet, been looking into it though. Firefox has some serious issues when it comes to rendering font face fonts (only particular ones though). Let me know if you sort it out.
I hope someone finds a solution for Firefox.
<3
Fantastic due… thanks a mil…
The best code fix EVER!!!! I love you too!
Awesome! 🙂 save my day!
Try giving “opacity:0.99” to the text element for firefox on mac.
Wow, thank you so much! this just saved my bacon. My boss will be happy, let me buy you a beer Dwayne!
Brilliant! Thanks a million
You are a legend. I have spent the entire night trying to work out what was happening. Thank you so much!
Grate Solution
Thanks mate 🙂
Thanks so much!! I´ve looking a wile for a good solution like this!
Thanks a lot, well done!
You’re a total f’ing stud. Big ups! Thank you!!
Omg, you are a god. After 2 years i found solution. Thank you so much man!