Created
August 28, 2012 22:05
-
-
Save minitech/3504746 to your computer and use it in GitHub Desktop.
Pretending that a webfont is bold.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * 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; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <p id="one">Jackdaws love my big sphinx of quartz.</p> | |
| <p id="two">Jackdaws love my big sphinx of quartz.</p> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {"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