如果 MS Word 可以呈现自定义字体,那不就意味着 Outlook 可以呈现自定义字体吗?

If MS Word can render custom fonts, shouldn't that mean Outlook can render custom fonts?

众所周知,Outlook 使用 Word 呈现电子邮件。在 HTML 电子邮件社区中还广为人知的是,Outlook 会将自定义字体呈现为 Times New Roman。

目前,我使用条件语句从 Outlook 中隐藏我的字体语句,然后将 Arial 设置为字体。但是我突然想到 Word 可以使用自定义字体,所以有人知道为什么 Outlook 不能吗?这是否意味着它可以但我们还没有解决?

Microsoft Word 和 Outlook 可以显示系统上安装的任何字体,但 Outlook 无法显示远程引用的字体。Outlook 可以显示任何自定义或非自定义字体,只要因为它安装在用户的本地系统中。但它无法显示在远程服务器上引用的非系统字体。

我们以Open Sans为例。 Open Sans 并未预装在大多数计算机上,但可以从 Google Fonts 免费下载和安装。如果您发送一封在字体堆栈中使用 Open Sans 的电子邮件,并且系统上安装了该字体的人在 Outlook 中打开它,Outlook 将显示 Open Sans。

但是 Outlook 无法显示远程字体。因此,如果 以上的用户没有 在他们的系统上安装 Open Sans,Outlook 将无法引用远程服务器上的字体副本来显示它。

<!-- Outlook doesn't support this --> 
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">

Outlook 不仅不支持远程字体,而且它会因上述参考而窒息,而是显示 Times New Roman(如您所述)。这可以通过将字体引用放在 Outlook 忽略的标记中来解决,如下所示:

<!-- Desktop Outlook chokes on web font references and defaults to Times New Roman, so we force a safe fallback font. -->
<!--[if mso]>
    <style>
        * {
            font-family: sans-serif !important;
        }
    </style>
<![endif]-->

<!-- All other clients get the webfont reference; some will render the font and others will silently fail to the fallbacks. -->
<!--[if !mso]><!-->
    <link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
<!--<![endif]-->

我希望这有助于解释字体在 Outlook 中的工作原理!