Created
May 5, 2013 09:31
-
-
Save fernandojsg/5520282 to your computer and use it in GitHub Desktop.
JS: Google fonts
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
http://www.google.com/fonts/ | |
<link href='http://fonts.googleapis.com/css?family=Iceland' rel='stylesheet' type='text/css'> | |
@media screen { | |
@font-face { | |
font-family: 'Iceland'; | |
font-style: normal; | |
font-weight: 400; | |
src: local('Iceland'), local('Iceland-Regular'), url('http://themes.googleusercontent.com/static/fonts/iceland/v1/F6LYTZLHrG9BNYXRjU7RSw.woff') format('woff'); | |
} | |
} | |
gameCanvas.getContext("2d").font = "18px Iceland"; | |
gameCanvas.getContext("2d").textBaseline = "top"; | |
gameCanvas.getContext("2d").fillText("Score: " + ticksSurvived, 5, 5); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment