Last active
December 24, 2015 00:58
-
-
Save jefffis/6720007 to your computer and use it in GitHub Desktop.
Using @font-face in email and how to apply fallbacks for Outlook.
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
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