L
L
lavezzi12015-03-24 18:05:10
css
lavezzi1, 2015-03-24 18:05:10

Open sans is thin in photoshop but not in the browser. What to do?

Are there any plugins etc to make text render thinner in the browser? Connected from google fonts and selected all font-weight. Still not thin enough. Thanks

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry Pytkin, 2015-03-25
@lavezzi1

1) Try adding:

-webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;

for body
2) Include fonts via Google fonts (before closing tag </head>):
3) Be sure to set the correct font-family and font-weight: 300; for the places where you need to render the font:
.cite {
  font-family: "Open Sans", Helvetica, Arial, Sans-sarif;
  font-weight: 300;
}

You can do this globally (for the entire site), in the same body:
body {
  font-family: "Open Sans", Helvetica, Arial, Sans-sarif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

Open the source code of any site with custom fonts (via the web inspector / developer panel), see how they did it (you can see it on the same toaster).

I
Ilya Korablev, 2015-03-24
@swipeshot

Let's take a look at the font.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question