Skip to content

Instantly share code, notes, and snippets.

@tofumatt
Created May 10, 2011 15:11
Show Gist options
  • Save tofumatt/964653 to your computer and use it in GitHub Desktop.
Save tofumatt/964653 to your computer and use it in GitHub Desktop.
Inline font-face
@font-face {
font-family: "Obviously Arial";
src: url("data:font/opentype;base64,[base64-encoded font data as a string]");
}
body {
font-family: "Obviously Arial", Helevetica, "Marker Felt", sans-serif;
}
/**
Have a good fallback; this likely won't work.
Oh and it'll increase the size of the email by a LOT (however big the font is)
**/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment