BR
1
Outlook Overrides Font to Times New Roman
We need our emails to look good on machines that have Open Sans.
Litmus shows Outlook 07, 10, & 2013 showing these in Times New Roman.
Yet, our clients are receiving these emails in Times New Roman. What am I missing? Any directions or pointers about why Outlook 07, 10, 2013 forces everything to override to Times New Roman?
Below is the code to the email. Please let me know what am I missing
Thanks!
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Cloud Server</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0," />
<meta name="format-detection" content="telephone=no">
<style type="text/css">
@import url(http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800);
html { width: 100%; }
body {margin:0; padding:0; width:100%; -webkit-text-size-adjust:none; -ms-text-size-adjust:none;}
img {border:0; -ms-interpolation-mode:bicubic;}
.ReadMsgBody { width: 100%;}
.ExternalClass {width: 100%;}
.ExternalClass, .ExternalClass p, .ExternalClass span, .ExternalClass font, .ExternalClass td, .ExternalClass div { line-height: 100%; }
a:hover {text-decoration:underline !important;}
.images {display:block !important; width:100% !important;}
/* MEDIA QUIRES */
@media only screen and (max-width:640px)
{
body {width:auto!important;}
table[class=devicewidth] {width:70%!important;}
table[class=devicewidth] table {width:100%!important;}
}
@media only screen and (max-width:480px)
{
table[class=devicewidth] {width:80%!important;}
}
</style>
</head>
<body topmargin="0" rightmargin="0" bottommargin="0" leftmargin="0">
<!-- HEADER -->
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#4f595b">
<tr>
<td>
<table width="700" border="0" cellspacing="0" cellpadding="0" align="center" class="devicewidth" style="background:#000000; border-radius:3px 3px 0 0;">
<tr>
<td valign="middle" height="100" style="padding:0 50px;">
<table width="105" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td align="center" valign="middle" height="35"><a href="http://intrinium.com"><img src="http://lead-launcher.s3.amazonaws.com/Intrinium-Cloud-Server/images/logo.png" alt="logo" width="200" height="73" /></a></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<!-- HEADER OR BANNER -->
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#4f595b">
<tr>
<td>
<table width="700" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#ffffff" class="devicewidth" style="border-bottom:5px solid #42c0d3;">
<tr>
<td style="line-height:0;"><img src="http://lead-launcher.s3.amazonaws.com/Intrinium-Cloud-Server/images/banner.jpg" alt="image" width="700" style="width:100%;" /></td>
</tr>
</table>
</td>
</tr>
</table>
<!-- NAME -->
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#4f595b">
<tr>
<td>
<table width="700" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#cd0006" class="devicewidth">
<tr>
<td height="15"> </td>
</tr>
<tr>
<td style="color:#ffffff; font-family:Open Sans, Arial, Helvetica, sans-serif; font-size:16px; font-weight:bold; padding-left:50px;">Hello [Contact First Name],</td>
</tr>
<tr>
<td height="15"> </td>
</tr>
</table>
</td>
</tr>
</table>
<!-- CONTENT -->
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#4f595b">
<tr>
<td>
<table width="700" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#ffffff" class="devicewidth">
<tr>
<td> </td>
</tr>
<tr>
<td align="left" style="color:#444444; font-family:Open Sans, Arial, Helvetica, sans-serif; font-size:14px; line-height:20px; padding:0 50px;">Are you still deciding whether or not to invest in cloud server? <br />
<br />
We thought we would help. </td>
</tr>
<tr>
<td height="30"> </td>
</tr>
</table>
</td>
</tr>
</table>
<!-- 3IMAGE/CONTENT -->
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#4f595b">
<tr>
<td>
<table width="700" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#ffffff" class="devicewidth">
<tr>
<td align="left" style="color:#cd0006; font-family:Open Sans, Arial, Helvetica, sans-serif; font-size:14px; line-height:20px; padding:0 50px;"><strong>Here are four signs that you should move to the cloud. </strong></td>
</tr>
<tr>
<td height="30"> </td>
</tr>
<tr>
<td style="padding:0 50px;">
<table width="180" border="0" cellspacing="0" cellpadding="0" align="left" style="border-collapse:collapse; mso-table-lspace:0pt; mso-table-rspace:0pt;">
<tr>
<td align="left" style="line-height:0;"><img src="http://lead-launcher.s3.amazonaws.com/Intrinium-Cloud-Server/images/image1.png" width="180" alt="image" /></td>
</tr>
</table>
<table width="5" border="0" cellspacing="0" cellpadding="0" align="left" height="30" style="border-collapse:collapse; mso-table-lspace:0pt; mso-table-rspace:0pt;"><tr><td> </td></tr></table>
<table width="60%" border="0" cellspacing="0" cellpadding="0" align="right">
<tr>
<td style="color:#444444; font-family:Open Sans, Arial, Helvetica, sans-serif; font-size:14px; font-weight:bold; text-transform:uppercase;">Your current IT server is in a serious need an upgrade</td>
</tr>
<tr>
<td height="10"></td>
</tr>
<tr>
<td style="color:#444444; font-family:Open Sans, Arial, Helvetica, sans-serif; font-size:13px; line-height:20px;">If your current IT server is out of date, you need to decide whether you should update it or move to the cloud. You could invest in new equipment, but you still have the risk of a server crash, or you could save money and eliminated your server crash crisis plan. </td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="40" style="border-bottom:1px solid #eeeeee;"> </td>
</tr>
<tr>
<td height="40"> </td>
</tr>
<tr>
<td style="padding:0 50px;">
<table width="180" border="0" cellspacing="0" cellpadding="0" align="right" style="border-collapse:collapse; mso-table-lspace:0pt; mso-table-rspace:0pt;">
<tr>
<td align="left" style="line-height:0;"><img src="http://lead-launcher.s3.amazonaws.com/Intrinium-Cloud-Server/images/image2.png" width="180" alt="image" /></td>
</tr>
</table>
<table width="5" border="0" cellspacing="0" cellpadding="0" align="left" height="30" style="border-collapse:collapse; mso-table-lspace:0pt; mso-table-rspace:0pt;"><tr><td> </td></tr></table>
<table width="60%" border="0" cellspacing="0" cellpadding="0" align="left">
<tr>
<td style="color:#444444; font-family:Open Sans, Arial, Helvetica, sans-serif; font-size:14px; font-weight:bold; text-transform:uppercase;">Your Business is Growing</td>
</tr>
<tr>
<td height="10"></td>
</tr>
<tr>
<td style="color:#444444; font-family:Open Sans, Arial, Helvetica, sans-serif; font-size:13px; line-height:20px;">When you have a cloud server it’s much easier to upgrade storage than an IT server, which is vital for a growing business. It will be harder for an IT server to keep up. </td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="40" style="border-bottom:1px solid #eeeeee;"> </td>
</tr>
<tr>
<td height="40"> </td>
</tr>
</table>
</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#4f595b">
<tr>
<td>
<table width="700" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#ffffff" class="devicewidth">
<tr>
<td style="padding:0 50px;">
<table width="180" border="0" cellspacing="0" cellpadding="0" align="left" style="border-collapse:collapse; mso-table-lspace:0pt; mso-table-rspace:0pt;">
<tr>
<td align="left" style="line-height:0;"><img src="http://lead-launcher.s3.amazonaws.com/Intrinium-Cloud-Server/images/image3.png" width="180" alt="image" /></td>
</tr>
</table>
<table width="5" border="0" cellspacing="0" cellpadding="0" align="left" height="30" style="border-collapse:collapse; mso-table-lspace:0pt; mso-table-rspace:0pt;"><tr><td> </td></tr></table>
<table width="60%" border="0" cellspacing="0" cellpadding="0" align="right">
<tr>
<td style="color:#444444; font-family:Open Sans, Arial, Helvetica, sans-serif; font-size:14px; font-weight:bold; text-transform:uppercase;">You are opening New Locations</td>
</tr>
<tr>
<td height="10"></td>
</tr>
<tr>
<td style="color:#444444; font-family:Open Sans, Arial, Helvetica, sans-serif; font-size:13px; line-height:20px;">Avoid purchasing multiple IT servers for each location of your business, with a cloud server your employees from all locations can access the same server. </td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="40" style="border-bottom:1px solid #eeeeee;"> </td>
</tr>
<tr>
<td height="40"> </td>
</tr>
<tr>
<td style="padding:0 50px;">
<table width="180" border="0" cellspacing="0" cellpadding="0" align="right" style="border-collapse:collapse; mso-table-lspace:0pt; mso-table-rspace:0pt;">
<tr>
<td align="left" style="line-height:0;"><img src="http://lead-launcher.s3.amazonaws.com/Intrinium-Cloud-Server/images/image4.png" width="180" alt="image" /></td>
</tr>
</table>
<table width="5" border="0" cellspacing="0" cellpadding="0" align="left" height="30" style="border-collapse:collapse; mso-table-lspace:0pt; mso-table-rspace:0pt;"><tr><td> </td></tr></table>
<table width="60%" border="0" cellspacing="0" cellpadding="0" align="left">
<tr>
<td style="color:#444444; font-family:Open Sans, Arial, Helvetica, sans-serif; font-size:14px; font-weight:bold; text-transform:uppercase;">Have Remote Employees</td>
</tr>
<tr>
<td height="10"></td>
</tr>
<tr>
<td style="color:#444444; font-family:Open Sans, Arial, Helvetica, sans-serif; font-size:13px; line-height:20px;">If you have employees that work from home, a cloud server will be very beneficial, being able to access the companies server from anywhere there is an Internet connection. </td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="50"> </td>
</tr>
</table>
</td>
</tr>
</table>
<!-- 2 COL -->
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#4f595b">
<tr>
<td>
<table width="700" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#cd0006" class="devicewidth">
<tr>
<td style="padding:0 50px;">
<table width="46%" border="0" cellspacing="0" cellpadding="0" align="left">
<tr>
<td height="10"></td>
</tr>
<tr>
<td height="10"></td>
</tr>
<tr>
<td style="color:#FFFFFF; font-family:Open Sans, Arial, Helvetica, sans-serif; font-size:13px; line-height:20px;"><strong>Toll-Free: <a href="tel:8664615099 " style="text-decoration:none;border:none;color:#ffffff;">866.461.5099</a></strong><br />
<br />
Spokane, WA (HQ): <a href="tel:5094651234" style="text-decoration:none;border:none;color:#ffffff;">509.465.1234</a> <br />
Seattle, WA: <a href="tel:2062741355" style="text-decoration:none;border:none;color:#ffffff;">206.274.1355</a> <br />
Pasco, WA: <a href="tel:5094169119" style="text-decoration:none;border:none;color:#ffffff;">509.416.9119</a> <br />
Olympia, WA: <a href="tel:3607014306" style="text-decoration:none;border:none;color:#ffffff;">360.701.4306</a> <br />
<br />
Portland, OR: <a href="tel:5037644244" style="text-decoration:none;border:none;color:#ffffff;">503.764.4244</a></td>
</tr>
<tr>
<td height="10"> </td>
</tr>
</table>
<table width="46%" border="0" cellspacing="0" cellpadding="0" align="right">
<tr>
<td height="10"></td>
</tr>
<tr>
<td height="10"></td>
</tr>
<tr>
<td style="color:#FFFFFF; font-family:Open Sans, Arial, Helvetica, sans-serif; font-size:13px; line-height:20px;">San Antonio, TX: <a href="tel:2108810706" style="text-decoration:none;border:none;color:#ffffff;">210.881.0706</a> <br />
<br />
<strong>Mailing Address:</strong><br />
<a href="https://www.google.com/maps/place/Intrinium/@47.653329,-117.413638,15z/data=!4m2!3m1!1s0x0:0xf96eba7475e9715c" style="color:#ffffff; text-decoration:none;">Intrinium 609 N Argonne Rd Spokane Valley, WA 99212</a></td>
</tr>
<tr>
<td height="10"> </td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<!-- FOOTER -->
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#4f595b">
<tr>
<td>
<table width="700" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#ffffff" class="devicewidth">
<tr>
<td> </td>
</tr>
<tr>
<td style="padding:0 50px;">
<table width="480" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td align="center">
<a href="https://www.facebook.com/pages/Intrinium/154891544582822"><img src="http://lead-launcher.s3.amazonaws.com/Intrinium-Cloud-Server/images/facebook.png" width="45" alt="images" /></a><span> </span>
<a href="https://twitter.com/Intrinium"><img src="http://lead-launcher.s3.amazonaws.com/Intrinium-Cloud-Server/images/twitter.png" width="45" alt="images" /></a><span> </span>
<a href="http://www.linkedin.com/company/intrinium_networks_it_security"><img src="http://lead-launcher.s3.amazonaws.com/Intrinium-Cloud-Server/images/linkedin.png" width="45" alt="images" /></a><span> </span>
<a href="https://www.youtube.com/user/intrinium"><img src="http://lead-launcher.s3.amazonaws.com/Intrinium-Cloud-Server/images/youtube.png" width="45" alt="images" /></a><span> </span>
<a href="http://intrinium.com/blog/"><img src="http://lead-launcher.s3.amazonaws.com/Intrinium-Cloud-Server/images/blog.png" width="45" alt="images" /></a>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td> </td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
Hi,
I tried a number of the suggestions below and many didn't work but have come up with something that works for me and uses bits of a couple of suggestions below:-
I have added this as the first bit of code after the <body> tag.
It will only render in Outlook and sets the default font for the body, table and td elements on the whole document so no need to add a class everywhere you have text.
Hope it saves some hair pulling.
Steve
PS Add other tags if required such as h1, h2, li to deal with headlines and lists :o)
Thanks so much for this! Tried several options but this one did exactly what I wanted. Saved me a lot of time and still have most of my hair left!
Thanks Steve, this technique worked for me also! Ted
You're a hero. This is the best, easiest solution I've come across for this issue.
Fantastic! This just saved me a few hours.
This is an interesting approach! Instead of trying to hide the webfont from Outlook, you explicitly set the font to Arial only in Outlook.
I find this approach is the best as well. Even when various defensive methods like use
@media
to load custom fonts, single quotes on custom font stacks etc. I have still noticed in some cases Times New Roman will creep in on Inbox Inspections.Using a MSO conditional makes sense as you can safely target generic selectors where text is going to be contained like
td
,span
without having to use additional classes. A rather clean solution that's easier to maintain.The reason why we see erratic cases of fonts sometimes still rendering in Times New Roman (TNR) even though precaution is taken to not load the font in Outlook is because Outlook caches @font-face declarations (until app restart).
Normally, if you hide the @font-face declaration from Outlook, you can refer to custom fonts inline and Outlook will fallback to the next declared font such as Arial because to Outlook, the font "doesn't exist".
ie.
<span style="font-family:'Open Sans', Arial">
However if another email uses the same custom font but DOESN'T hide the @font-face declaration (or @import or linked stylesheet), then Outlook caches that declaration and will cause subsequent uses of the font to render in TNR.
This is all due to the fact that Outlook seems to process @font-face declarations but fail to load the font for some reason and causing it to treat the declared font as TNR.
Great explanation.
I implemented my solution this way:
Seems to work.
This didn't work for me
Hi Camilo,
I didn't have an outlook desktop app to test, so I just rely on litmus client testing.
Can I get more informations about your feedback? I really like to know if I can rely on this trick.
Where you able to test this on a true native app?
I did launch an "obvious" test on litmus (everybody can recognise this dear 'Comic Sans MS'):
It seems to work because:
1. Baloo Tamma is used where web fonts is supported
2. Comic Sans ms where it's not (No "Times New Roman" on outlook)
3. or else sans-serif
!mso
conditional commentThanks for your feedback.
Update:
There's the same test without conditional comment above link to google font:
https://litmus.com/checklist/emails/public/1020e51
Nice solution! It works perfectly.
Worked like a charm, thank you!
Strangely, this didn't work for an issue with Times New Roman on lists (the first number of an ol was ignoring font-family and color, but the following worked (not even adding a class worked):
<!--[if mso]>
<style type="text/css">
.MsoNormal {font-family: Arial, sans-serif !important; color:rgb(75, 88, 105);}
</style>
<![endif]-->
Yes...this is similar to my updated approach...except I don't even mess with MSO anymore because, well yeah I don't wanna mess with the MSO anymore (who does, honestly?).
This has to be done a bit clunky. I've found that trying a 'minified' style does not work at all in Outlook or OWA...and trying to combine all various tags/selectors/classes doesn't really work, so I go with this hideously ugly solution. I could probably cut some stuff down, but this is the version I'm at for now. A few extra lines are a small price to pay to never have to see Times New Roman ever again.
This solution also removes the need to ever call "font-family" inline or in your css, unless you want to do something specific with a separate font. Overrides will work because nothing is tagged with !important, so you have a lot of flexibility after the fact.
Sitting right below the body tag, of course...
I'm experiencing the same problem and I haven't been able to resolve it. Can anyone help? I tried adding the code Steven suggested. Here is my code:
Thank you!
Hello Steve :)
Thank you so much! You made my day!
THIS HELPED SO MUCH. I was just going to rip all my hair out. Thank you!
THANK YOU so much. I tried many other solutions, and none would work for me. This worked, and it's so simple!
This is a known issue in Outlook. Despite your fallback fonts being declared, Outlook will fall back to Times New Roman. Check out this blog post for some information on how to combat that and have Outlook display your fallbacks in the absence of web fonts.
Thank you, Jason! Reading this article now and it's a great reference.
Awesome, glad to hear it!
I have used many of the workarounds discussed here and have been able to solve the issue of emails rendering in Helvetica instead of Times New Roman in Outlook for PC users. However, when the email is then forwarded or replied to, all text in <p> tags defaults back to Times New Roman! Text wrapped in span and h tags stays in Helvetica, but not <p>. Has anyone else observed this behaviour and do you have any ideas?
Hi,
I fixed my problem using the below coding.
Yep, I second this solution! Nice and easy, minimal markup. It also means that if you are just using one typeface you can just specify its font family once on your main wrapper element and it will be inherited by every child (as per typical css behaviour) in all other clients. More importantly there is no need to worry about doing anything fancy with your webfont, you can just include it once as part of a normal font stack.
The only thing I would do differently to Poornima's example is that I use
<!--[if mso]>
(no need to be any more specific) and{font-family: sans-serif;}
(again, usually there is no need to be any more specific as it will automatically pick Arial in most cases).Hi,
I tried alot, Let me clear one thing first, Email templates will always render Arial font by default. But if in case the font is rendered in Times New Roman.
Then add this:
Your default font will get rendered that is Arial. But Times New Roman will not come. Just check this out : https://litmus.com/pub/21c58cb
I tested in three clients Outlook 7, 10, 13.
WoW! That was simple and it works! Thanks man!!
Thanks for this, can you confirm where in the html I put this code?
I assume I need to specify the style? So to force Arial It should be:
Have I got that right?
Guessing that's not right, because I just tried it and it didn't seem to make any difference.
I create a fallback class for anything Outlook related to fallback to Arial, and it's worked for me perfectly. Use the class wherever you are using your web font.
<!--[if mso]>
<style type="text/css">
.outlookFallback {font-family: Arial, Helvetica, sans-serif!important;}
</style>
<![endif]-->
By removing any reference to sans-serif and replacing it with 'tahoma', Outlook ditched falling back to Times.
Old discussion, but hey, I just got it in my Litmus Community email today, so thought I might chime in.
I see most people recommending Outlook-specific commented styles. I find that an unnecessary extra piece of code - you can do it much cleaner, without always resorting to Outlook comments...
1. Base typography reset
In your embedded CSS, reset the typography first. Using a Bootstrap 4-inspired system font stack here, but use whatever system fonts you like. Also keep in mind that some clients won't support tag selectors - that's why I included a class, which you can use on your cells, for example.
I've tested this and it works across the board, including all Outlook clients and Windows 10 Mail.
2. Webfonts import
Instead of inlining the webfont family (which triggers Times New Roman in Outlook), apply the webfont in a media query. All clients that support webfonts will support this:
What's cool about this is that you can import multiple fonts and assign them to classes that you add to your cells/paragraphs/headings. So you can have a certain font for headings while using a different one for the body copy:
Here's an example of what I usually do:
Of course, if you want the webfonts to fallback to that same system fonts stack, you must include it in the media query as well, as it uses
!important
to override the reset above. I just usedsans-serif
to keep it short.Hope this helps :)
Old discussion, but hey, I just got it in my Litmus Community email today, so thought I might chime in.
I see most people recommending Outlook-specific commented styles. I find that an unnecessary extra piece of code - you can do it much cleaner, without always resorting to Outlook comments...
1. Base typography reset
In your embedded CSS, reset the typography first. Using a Bootstrap 4-inspired system font stack here, but use whatever system fonts you like. Also keep in mind that some clients won't support tag selectors - that's why I included a class, which you can use on your cells, for example.
I've tested this and it works across the board, including all Outlook clients and Windows 10 Mail.
2. Webfonts import
Instead of inlining the webfont family (which triggers Times New Roman in Outlook), apply the webfont in a media query. All clients that support webfonts will support this:
What's cool about this is that you can import multiple fonts and assign them to classes that you add to your cells/paragraphs/headings. So you can have a certain font for headings while using a different one for the body copy:
Here's an example of what I usually do:
Of course, if you want the webfonts to fallback to that same system fonts stack, you must include it in the media query as well, as it uses
!important
to override the reset above. I just usedsans-serif
to keep it short.Hope this helps :)
Old discussion, but hey, I just got it in my Litmus Community email today, so thought I might chime in.
I see most people recommending Outlook-specific commented styles. I find that an unnecessary extra piece of code - you can do it much cleaner, without always resorting to Outlook comments...
1. Base typography reset
In your embedded CSS, reset the typography first. Using a Bootstrap 4-inspired system font stack here, but use whatever system fonts you like. Also keep in mind that some clients won't support tag selectors - that's why I included a class, which you can use on your cells, for example.
I've tested this and it works across the board, including all Outlook clients and Windows 10 Mail.
2. Webfonts import
Instead of inlining the webfont family (which triggers Times New Roman in Outlook), apply the webfont in a media query. All clients that support webfonts will support this:
What's cool about this is that you can import multiple fonts and assign them to classes that you add to your cells/paragraphs/headings. So you can have a certain font for headings while using a different one for the body copy:
Here's an example of what I usually do:
Of course, if you want the webfonts to fallback to that same system fonts stack, you must include it in the media query as well, as it uses
!important
to override the reset above. I just usedsans-serif
to keep it short.Hope this helps :)
Hey there,
I recently got Open Sans to work well on my emails and make Outlook default to Arial. I'll paste some of the code I used in order to help you.
In style, put the following (and include the if mso above it):
Here is an example of what you want to do with your text part (example of a row):
Myself and my team tested this extensively and it worked very well. Best of luck!
Hi Bryan, I think it's because you're importing Open Sans, which is not a web-safe font. You can use conditional formatting in the
<head>
section with conditional formatting for Outlook using<!--[if mso]>
to force Outlook to use your web-safe fallback fonts. Here is a guide with more info.Hey ! Yeah landed on the right page. We have same kind of issue and not sure why the text appears to be Times New Roman instead of the one we actually defined in the source code. Appreciate your help.
Hi,
Now I am unable to set the font -size in Arial. If I use arial font size:18px,my browser(google chrome) is quite ok. But outlook 2013 seems to display the same font-size as font-size:11px ,font-family:arial.How to fix this bug..
I tried setting font-size :18px in every <td> also but no use..Please have a look at my coding below and try in both google chrome and copy paste the same in outlook 2013 and check.You will find the alignment change.
You should use size:1; instead using font-size
Hi, I tried every solution mentioned in this thread but litmus is still displaying 'Times New Roman' font for me (on outlook). Below is the code. Please can anyone let me know what am I missing. Thanks in advance.
Hey Adiba -
I don't think many people check this that often anymore, but did you try this solution?
https://litmus.com/community/discussions/982-outlook-overrides-font-to-times-new-roman#comment-9847
Good luck!
Adiba, I've just tested in Litmus and I'm not seeing Times New Roman at all in any of the Outlook previews. Can you confirm which preview(s) you're seeing this exactly?
@Niven Ranchhod it's working now for me but the line height and the font-weight is little messed up in outlook. I think its because I am using "normal" instead of using a number (400, 500)
I found this solution from Kate McDonough to work perfectly.
I will now have to try all the other solutions listed here.
Yes, this is OUTLOOK issue, but try using !important in inline style:
Like :
And Put all the style in-line, not in style. It will be easy for you to debug the code.
Note: And moreover, mailers need to be made with inline-style only.
Tried it but didn't work :(
Bryan, read the blog post that Jason posted. It has the answer you're looking for. :)
That won't work Neeta. Please refer to Jason's comment. It's a known issue that Outlook 07/10/13 don't support web fonts, and that a specific piece of code for Outlook needs to be added to display fallback fonts.
Also, using !important causes Outlook to actually ignore the style.
Steve Fix was great! Thanks Steve
Hey guys,
Thanks for all of your feedback. I tried numerous of steps including the blog that Jason post, but it's still not working for me. Can someone guide me step by step if possible.
Using an unrecognised font in Outlook causes an error that ignores the whole font-family and reverts to the default.
So try this;
Set all your inline fonts as websafe fonts
font-family:Arial, Helvetica, sans-serif;
don't try and put a webfont here.in a webkit media query set the webfont an all elements using the universal selector *
@media screen and (-webkit-device-pixel-ratio){
.class {
font-family:Open Sans, Arial, Helvetica, sans-serif !important;
}
}
If you only want it set on certain elements use those selectors instead of the *
That should work for you I think..
I think everyone's already said their peace on this one, but here's another example that is my go-to.
Hi Zach Freed,
Thanks for your post.
But it didn't help me to overcome my issue.
Hi Bryan, i've checked you code, i don't see any reason why email clients would change font family to Times. If email client doesn't support Open Sans, it will render as Arial, Helvetica, sans-serif.
I've made at test in Outlook 2007 (doesn't support web fonts) and i see all text in Arial.
Should be
'Open Sans'
you're welcome