Skip to main content
Emailens
Blog

Yahoo Mail Ignores Your Font? Remove the Quotes

Yahoo Mail on the web drops an inline font-family whose list quotes a name, such as 'Courier New' or 'Segoe UI', so write the names without quotes (font-family: Courier New, Courier, monospace) or set the stack in a <style> class.

font-family

Works in all 21.

The checker needs a computer screen.

A free account opens all 21 clients and keeps your checks for 7 days. Create a free account →

Philippe Kam, founder of Emailens · Published 28 Oct 2026

@emailens/engine 0.17.2 · data last changed 27 Oct 2026

Part of the HTML email guide · all guides

Your email looks right in Gmail and Apple Mail, but in Yahoo Mail the text is in a plain sans-serif font. If your font is set inline and one of its names is in quotes, that is the cause, and the fix is to delete the quotes.

The fix: write font names without quotes

Yahoo Mail on the web throws away an inline font-family when the list contains a quoted name. It drops the whole declaration, not just the quoted font, so the fallbacks after it are lost too:

Lost in Yahoo Mail
4 lines
<!-- Yahoo Mail drops this whole declaration -->
<td style="font-family:'Courier New',Courier,monospace;">
  npm install --save-dev emailens
</td>

Font names made of plain words do not need quotes in CSS. The same list without them is valid and Yahoo keeps it:

Kept in Yahoo Mail
4 lines
<!-- Same fonts, no quotes: Yahoo keeps it -->
<td style="font-family:Courier New,Courier,monospace;">
  npm install --save-dev emailens
</td>

Keep the quotes only for a name that needs them, one with a digit at the start or a character other than letters, digits, hyphens and spaces. If your font needs them, set it in a <style> class instead: Yahoo kept the quoted list there.

Or move the stack to a class
5 lines
<style>
  .code { font-family: 'Courier New', Courier, monospace; }
</style>
<!-- A class keeps the font in Yahoo, quotes and all -->
<td class="code" style="font-family:Courier New,Courier,monospace;">

What we tested

We sent one test email to a real Gmail inbox and a real Yahoo Mail inbox, both opened on the web in Chrome, on 28 October. Each row sets the same text in a different way. In a monospace font, iiiii and WWWWW take the same width, so a lost font is easy to see.

Fourteen font tests side by side: every row is monospace in real Gmail; in real Yahoo Mail, the rows whose inline font list quotes a name show a sans-serif font
Rows A, D and M quote a font name inline. Yahoo shows them in its own font; every other row, and every row in Gmail, keeps the monospace.
  • Lost in Yahoo: any inline list with a quoted name, whether it came first ('SFMono-Regular',Consolas) or later (Consolas,'Liberation Mono').
  • Kept in Yahoo: the same fonts unquoted, the generic monospace alone, !important, the font on a <td>, <code> and <pre> with no style, and a quoted list in a <style> class.
  • Gmail kept every row. Its web app does not load web fonts, so it used the fallbacks, as expected.

What it looks like in a real newsletter

A monospace newsletter theme sets its font twice: in a <style> block for headings, and inline on the content table for everything else. Its inline list starts with the web font's quoted name. In Yahoo, the headings keep the theme; the body text, links, tip box, button, list and footer do not.

The same newsletter in real Gmail, all in a monospace font, and in real Yahoo Mail, where only the headings stay monospace and the body falls back to sans-serif
One email, two real inboxes, opened on 28 October.

Common font stacks hit this without anyone choosing a special font: the system stack quotes 'Segoe UI', serif stacks quote 'Times New Roman'. Each works without quotes:

Lost in Yahoo MailKept
-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Arial,sans-serif
Georgia,'Times New Roman',Times,serifGeorgia,Times New Roman,Times,serif
'Helvetica Neue',Helvetica,Arial,sans-serifHelvetica Neue,Helvetica,Arial,sans-serif
ui-monospace,SFMono-Regular,Menlo,Consolas,'Courier New',monospaceui-monospace,SFMono-Regular,Menlo,Consolas,Courier New,monospace

Your web font, if you load one with @font-face, still needs its fallbacks: Gmail and Outlook do not load it. See which email clients load web fonts.

Why support tables do not show it

Support data, ours included until this week, rates font-family as supported in Yahoo Mail, and the property itself is. What breaks is one way of writing its value, inline and with quotes, which a per-property table has no row for. We found it while testing emails that AI agents wrote for a newsletter app: the code blocks in a developer digest lost their monospace in Yahoo only.

Emailens now flags it. A quoted font list in an inline style raises a Yahoo Mail warning with the unquoted fix, and the Yahoo preview drops that font the way Yahoo does. Paste your email into the HTML email checker to see if yours has it.

Questions

Why does Yahoo Mail show my email in the wrong font?

If the font is set in an inline style and the list names a font in quotes, such as 'Courier New' or 'Segoe UI', Yahoo Mail on the web drops the whole font-family declaration. The text then uses Yahoo's own sans-serif font.

Are font names without quotes valid CSS?

Yes. A family name made of plain words can be written without quotes: font-family: Courier New, Courier, monospace is valid. Quotes are only needed for names that contain other characters or start with a digit.

Does this affect fonts set in a <style> block?

No. In our test, the same quoted font stack in a <style> class kept its font in Yahoo Mail. Only the inline style attribute lost it.

Do Gmail and Apple Mail have the same problem?

Gmail kept every form we tried, quoted or not. The issue was Yahoo Mail on the web. We have not yet tested the Yahoo Mail apps.

Your next question

Also useful: HTML email checker · CSS Support Lookup · Email Rendering Playground

Paste the email that broke.

The checker needs a computer screen.

Get new email CSS fixes by email, or follow by RSS.