Skip to content

Instantly share code, notes, and snippets.

@markhealey
Created March 8, 2013 20:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save markhealey/5119485 to your computer and use it in GitHub Desktop.
Save markhealey/5119485 to your computer and use it in GitHub Desktop.
open sans, the right way
@font-face {
font-family: 'Open Sans';
src: url('./font/opensansregular.eot');
src: url('./font/opensansregular.eot?#iefix') format('embedded-opentype'),
url('./font/opensansregular.woff') format('woff'),
url('./font/opensansregular.ttf') format('truetype'),
url('./font/opensansregular.svg#opensansregular') format('svg');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'Open Sans';
src: url('./font/opensanssemibold.eot');
src: url('./font/opensanssemibold.eot?#iefix') format('embedded-opentype'),
url('./font/opensanssemibold.woff') format('woff'),
url('./font/opensanssemibold.ttf') format('truetype'),
url('./font/opensanssemibold.svg#opensanssemibold') format('svg');
font-weight: bold;
font-style: normal;
}
/*http://fonts.googleapis.com/css?family=Open+Sans:400,600*/
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 400;
src: local('☺'), /* IE */
local('Open Sans'),
local('OpenSans'),
url(http://themes.googleusercontent.com/static/fonts/opensans/v6/cJZKeOuBrn4kERxqtaUH3bO3LdcAZYWl9Si6vvxL-qU.woff) format('woff');
}
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 600;
src: local('☺'), /* IE */
local('Open Sans Semibold'),
local('OpenSans-Semibold'),
url(http://themes.googleusercontent.com/static/fonts/opensans/v6/MTP_ySUJH_bn48VBG8sNSqRDOzjiPcYnFooOUGCOsRk.woff) format('woff');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment