Reputation: 15511
I am using Google Open Sans fonts in an html page via:
<link href="http://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet" type="text/css">
Only the font-weight: 600;
makes the font bold. Other values don't seem to make a difference. How to have intermediary font weights for this particular font using the CSS rules? Or must I use some other font?
Upvotes: 10
Views: 8766
Reputation: 157334
What you are using will only consist of 400
font weight font file. Inorder to get other font weight font files, you need to select font weights as well, like
@import url('https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700');
Note that the more font weights you use, the more time it will take to load these files. Inorder to add more font weights, follow the steps below.
Upvotes: 15