Skip to content

Instantly share code, notes, and snippets.

@jefffis
Last active December 24, 2015 00:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jefffis/6720007 to your computer and use it in GitHub Desktop.
Save jefffis/6720007 to your computer and use it in GitHub Desktop.
Using @font-face in email and how to apply fallbacks for Outlook.
Use @font-face like normal:
@font-face {
// code here
}
There is an Outlook 2007 & up hack I've used at times that seems to fix this as well:
<!--[if gte mso 9]>
<style>
[selectors-here] {
font-family: Arial, Helvetica, sans-serif !important;
}
</style>
<![endif]-->
I use this at the bottom of my head tag to override any issues Outlook creates -- I tested this in Litmus here (https://litmus.com/pub/5c1ff1b/screenshots) and it works well. For non-Outlook 2007+, if @font-face is not supported, the actual fallback font is displayed as expected.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment