Question

I am having a serious issue with Google fonts. They were working fine till last week and since then they have stopped working on all the browsers and tablets. If I manually install fonts on my PC then only they show up but not very accurately.

Header code of API:

<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700,300' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Open+Sans+Condensed:300,700' rel='stylesheet' type='text/css'>

CSS:

body { font-family: 'Open Sans', Arial, sans-serif; font-size: 16px; color: #4c4c4c; background: url('images/textures/header_bg1.png') no-repeat center top, url(images/textures/11.png) 0px 0px; }

h1, h2, h3, h4, h5, h6 { font-family: 'Open Sans', Arial, sans-serif; padding-bottom: 6px; color: #474747; line-height: 1em; font-weight: 300; }
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a { color: #2b2b2b; }
h1 { font-size: 41px; font-weight: 300; color: #5a5a5a; margin-top: 25px;  margin-bottom:5px;}
h2 { font-size: 30px; font-weight: 300; margin-top: 25px;  margin-bottom:5px;}
h3 { font-size: 23px; font-weight: 300; margin-top: 25px;  margin-bottom:5px;}
h4 { font-size: 18px; font-weight: lighter; margin-top: 25px;  margin-bottom:5px;}
h5 { font-size: 16px; font-weight: lighter; margin-top: 25px;  margin-bottom:5px;}
h6 { font-size: 14px; font-weight: lighter; margin-top: 25px;  margin-bottom:5px;}

p { font-family: 'Open Sans', Arial, sans-serif; font-size: 12px; color: #4c4c4c; text-align: justify; margin-top: 10px; margin-bottom: 10px; line-height: 25px;}

Link to the site that I'm working on: http://www.bpcdev.co.uk

Was it helpful?

Solution

Bit late I suppose but the issue was with Google itself. They changed their Google Fonts URL from

Http

to

Https

OTHER TIPS

Make sure that the correct font-weight is specified in your CSS rule when applying a font to a header.

h1 
{
  font-family: Lobster, cursive;
  font-weight: 400;
}
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top