Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why are my Google Web Fonts pixelated?

I am trying to use google fonts in a simple website. The tag that I am using is

 <link href='http://fonts.googleapis.com/css?family=Lobster' rel='stylesheet' type='text/css' >

The css is

body {

  padding: 0;
  text-align: center;

  line-height: 180%;

  background: #1a2426;
  color: #f7f7f7;

  font-family: 'Lobster', serif;

}

The problem is that the font looks pixelated when I pull it up in Chrome. I was wondering if anyone could explain why?

Example

like image 348
jamesamuir Avatar asked Feb 14 '12 05:02

jamesamuir


People also ask

Why does Google text look pixelated?

This can be done by going to Settings within Chrome and typing "hardware" in the search box, then turn off the option to "Use hardware acceleration when available ". Only some computers will experience this issue, and it is advised to turn off hardware acceleration only if you experience issues.

Why does my Chrome text look blurry?

Many users have been reporting that sometimes Chrome looks blurry. To fix that, you just need to clear your cache and browsing data. Resetting the browser settings to default can also help with these types of issues.

Why does my font look blurry?

Blurry font problems can be caused by cables that aren't connected properly, older monitors, and poor screen resolution settings.


2 Answers

It appears that the Chrome Development team is aware of this issue. It is regarded by them as a bug that they are working on.

The best solution I've found is not to do any of the recommended CSS hacks (having a slight drop shadow, etc) but to rearrange your font stack so that the .svg version loads first since Chrome doesn't fully support TrueType fonts yet.

For example:

@font-face {
font-family: ‘MyWebFont’;
src: url(‘webfont.eot’); 
src: url(‘webfont.eot?#iefix’) format(‘embedded-opentype’),
    url(‘webfont.svg#svgFontName’) format(‘svg’),
    url(‘webfont.woff’) format(‘woff’),
    url(‘webfont.ttf’)  format(‘truetype’);
}

Check out this article for further info.

You can organize the load font order. you just have to understand that by calling http://fonts.googleapis.com/css?family=Lobster' rel='stylesheet' type='text/css' > you're bringing in an external stylesheet that says:

/* latin */
@font-face {
  font-family: 'Lobster';
  font-style: normal;
  font-weight: 400;
  src: local('Lobster'), local('Lobster-Regular'), url(http://fonts.gstatic.com/s/lobster/v11/G6-OYdAAwU5fSlE7MlBvhVKPGs1ZzpMvnHX-7fPOuAc.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215, U+E0FF, U+EFFD, U+F000;
}

so by just including that call directly in your stylesheets, you have control over the order load.

like image 59
Gray Ayer Avatar answered Sep 19 '22 13:09

Gray Ayer


It's not a problem of browser it's problem of windows.

Check this https://graphicdesign.stackexchange.com/questions/265/font-face-loaded-on-windows-look-really-bad-which-font-are-you-using-that-are

like image 22
sandeep Avatar answered Sep 16 '22 13:09

sandeep