@ font-face gives extra heavy font weight and / or poor anti-aliasing

I found an open font that I liked ( Crete Round ) and designed several screens in Photoshop with it. When it came time to customize CSS, I tried using both Google Fonts and fontsquirrel.com a downloadable β€œkit” (a zip file with four different types of fonts and a predefined stylesheet), but both gave me weird results on a Mac.

Photoshop - I want it to look like this:

enter image description here

Yuck - Chrome (and Safari) on Mac with the @ font-face set from fontsquirrel.com:

enter image description here

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

enter image description here

GOOD . Chrome for Windows (fontsquirrel):

enter image description here

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

Chrome on Mac using fontsquirrel, opacity:0.999; :

enter image description here

Does anyone have any ideas on what is going on here, or what can I do wrong?

+6
source share
2 answers

I don’t think you are doing something wrong. I also don’t think there is a way around this except using images instead of text, where style is absolutely important.

I found THIS LINK , which discusses rendering mechanisms in different operating systems (different browsers are also taken into account).

Hope this helps!

+1
source

try

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

+1
source

Source: https://habr.com/ru/post/918916/


All Articles