I downloaded fonts from google web fonts to use my psd project it’s okey so far.but in my html my google web fonts look different as you see below images;
font-size
font-family
line-height
font-weight
all same as photoshop but fonts look different…
and I added body
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
but nothing change..
by the way my font is Hind Fonts
3
Answers
All browsers will render fonts slightly differently regardless, font rendering is also is dependent on your OS.
Another thing that can effect how your fonts look is how the designer has set the text anti-aliasing in Photoshop. Text anti-aliasing is controlled here on your top menu bar (with text tool selected):
Below is the Hind font set with 5 different anti-alias settings:
Note how, in particular, the strong anti-aliasing setting changes the look of the actual font glyphs. Without seeing your actual code it is difficult to compare and diagnose any issue beyond what could be caused outside of Photoshop
You can fix font rendering slightly using
text-rendering
. Thisproperty provides information to the rendering engine about what to
optimize for when rendering text.
It’s not defined in any CSS standard – it’s just an SVG property.
However, Gecko/WebKit/Blink browsers let you apply this property to
HTML elements.
Some font files contain additional information about how the font
should be rendered and
optimizeLegibility
makes use of thisinformation
so you can use:
font-stretch: normal;
orfont-weight:normal;
maybe they will help you atleast a little.Are you sure that you just didn’t set the browser’s view zoom to somewhat below 100%? It seams like that.