Skip to content

Instantly share code, notes, and snippets.

@minitech
Created August 28, 2012 22:05
Show Gist options
  • Select an option

  • Save minitech/3504746 to your computer and use it in GitHub Desktop.

Select an option

Save minitech/3504746 to your computer and use it in GitHub Desktop.
Pretending that a webfont is bold.
/**
* Pretending that a webfont is bold.
* http://stackoverflow.com/a/12168041/707111 ​
*/
@font-face {
font-family: 'Headland One';
font-style: normal;
font-weight: 400;
src: local('Headland One'), local('HeadlandOne-Regular'), url(http://themes.googleusercontent.com/static/fonts/headlandone/v1/iGmBeOvQGfq9DSbjJ8jDV3hCUOGz7vYGh680lGh-uXM.woff) format('woff');
}
@font-face {
font-family: 'Headland One Fake Bold';
font-style: normal;
font-weight: bold;
src: local('Headland One'), local('HeadlandOne-Regular'), url(http://themes.googleusercontent.com/static/fonts/headlandone/v1/iGmBeOvQGfq9DSbjJ8jDV3hCUOGz7vYGh680lGh-uXM.woff) format('woff');
}
#one {
font: bold 1em Headland One Fake Bold;
}
#two {
font: bold 1em Headland One;
}​
<p id="one">Jackdaws love my big sphinx of quartz.</p>
<p id="two">Jackdaws love my big sphinx of quartz.</p>​
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment