Created
February 6, 2011 23:37
-
-
Save ryanseddon/813829 to your computer and use it in GitHub Desktop.
The many faces of font face
This file contains 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
// Just a bit of fun, http://www.thecssninja.com/demo/css_fontface/ | |
// Happy face | |
@font-face { | |
font-family:InYourFace; | |
src: url('Ubuntu-B.eot?') format('☺'), | |
url('Ubuntu-B.woff') format('woff'), | |
url('Ubuntu-B.ttf') format('truetype'), | |
url('Ubuntu-B.svg#webfontssbCkuz5') format('svg'); | |
} | |
// Sad face | |
@font-face { | |
font-family:InYourFace; | |
src: url('Ubuntu-B.eot?') format('☹'), | |
url('Ubuntu-B.woff') format('woff'), | |
url('Ubuntu-B.ttf') format('truetype'), | |
url('Ubuntu-B.svg#webfontssbCkuz5') format('svg'); | |
} | |
// Bone face | |
@font-face { | |
font-family:InYourFace; | |
src: url('Ubuntu-B.eot?') format('☠'), | |
url('Ubuntu-B.woff') format('woff'), | |
url('Ubuntu-B.ttf') format('truetype'), | |
url('Ubuntu-B.svg#webfontssbCkuz5') format('svg'); | |
} | |
// Inverted face | |
@font-face { | |
font-family:InYourFace; | |
src: url('Ubuntu-B.eot?') format('☻'), | |
url('Ubuntu-B.woff') format('woff'), | |
url('Ubuntu-B.ttf') format('truetype'), | |
url('Ubuntu-B.svg#webfontssbCkuz5') format('svg'); | |
} | |
// Snow face | |
@font-face { | |
font-family:InYourFace; | |
src: url('Ubuntu-B.eot?') format('☃'), | |
url('Ubuntu-B.woff') format('woff'), | |
url('Ubuntu-B.ttf') format('truetype'), | |
url('Ubuntu-B.svg#webfontssbCkuz5') format('svg'); | |
} | |
// Creepy face | |
@font-face { | |
font-family:InYourFace; | |
src: url('Ubuntu-B.eot?') format('〠'), | |
url('Ubuntu-B.woff') format('woff'), | |
url('Ubuntu-B.ttf') format('truetype'), | |
url('Ubuntu-B.svg#webfontssbCkuz5') format('svg'); | |
} | |
// Not really a face | |
@font-face { | |
font-family:InYourFace; | |
src: url('Ubuntu-B.eot?') format('⌛'), | |
url('Ubuntu-B.woff') format('woff'), | |
url('Ubuntu-B.ttf') format('truetype'), | |
url('Ubuntu-B.svg#webfontssbCkuz5') format('svg'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment