I have a very bad conflict using google-webfonts. OK here is the code:
This is in the head:
<link href='http://fonts.googleapis.com/css?family=Oswald:700' rel='stylesheet' type='text/css'>
And this is in the css file:
body { font-family: 'Oswald', sans-serif; font-weight: 700; }
" Oswald " is a font family of three fonts:
- book (300)
- normal (400)
- bold (700)
As you can see. I downloaded only bold (700). (you can see it in the request) And it still works BUT ...
PROBLEM:
I have a desktop version of three fonts (300,400,700) installed on my computer, and while these fonts are activated ... the browser shows me the wrong font (400) in my html document.
OK The problem is that in my css, 'Oswald' takes localfont and not webfont. But the local Oswald font is Oswald Normal. I donβt know why google calls it Oswald instead of Oswald Bold. Therefore, I do not know how to solve this problem.
I do not want css to point to a local font. I want it to always show webfont ... because of the correct font weight!
Do you have any ideas? You are welcome?
Can I rename a webfont call?
css fonts font-face webfonts google-webfonts
John doe smith
source share