Skip to content

Instantly share code, notes, and snippets.

@ryanseddon
Created February 6, 2011 23:37
Show Gist options
  • Save ryanseddon/813829 to your computer and use it in GitHub Desktop.
Save ryanseddon/813829 to your computer and use it in GitHub Desktop.
The many faces of font face
// 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