Reputation: 60068
I have a font loading in my HTML from a web template:
<link href='http://fonts.googleapis.com/css?family=Open+Sans:300' rel='stylesheet' type='text/css'>
What does the ":300" mean and do?
Upvotes: 4
Views: 6184
Reputation: 16269
Normal font weight. Same as 400.
Bold font weight. Same as 700.
One font weight lighter than the parent element (among the available weights of the font).
One font weight darker than the parent element (among the available weights of the font).
Numeric font weights for fonts that provide more than just normal and bold.
If the exact weight given is unavailable, then 600-900 use the closest available darker weight (or, if there is none, the closest available lighter weight), and 100-500 use the closest available lighter weight (or, if there is none, the closest available darker weight).
This means that for fonts that provide only normal and bold, 100-500 are normal, and 600-900 are bold.
To that particular case, the font is being set a bit lighter then the normal boldness.
Upvotes: 2
Reputation: 3601
It primarly sets the font-weight
for the CSS that is generated. But it also changes the source font-family also.
Ex.
Compare your link vs http://fonts.googleapis.com/css?family=Open+Sans:800
Upvotes: 5
Reputation: 1996
It's a font weight. 300 is normal weight.
It's in CSS2: http://www.devguru.com/technologies/css/quickref/css_fontweight.html
Upvotes: 0