跨电子邮件客户端可靠地使用 'font-weight: lighter' 或 'font-weight: 100'

Using 'font-weight: lighter' or 'font-weight: 100' reliably across email clients


我想用 font-family: helvetica neue; font-weight: 100; 制作一个标题,它在网络版上看起来不错,但在大多数电子邮件客户端中显示 font-weight: normal;

我在 Hubspot 工作以发送这些电子邮件。

    <table border="0" width="100%" cellspacing="0" cellpadding="0">
    <tbody>
    <tr>
    <td class="headlineOne" style="color: #000000; font-family: helvetica 
    neue, 
    helvetica, arial, sans-serif; font-weight: 100; font-size: 44px; text-
    align: left; line-height: 44px;">It's never too early</td>
    </tr>
    <tr>
    <td class="headlineTwo body-text" style="line-height: 41px; margin-top: 
    0; font-size: 41px; text-align: right; font-weight: 200; padding-
    right: 99px; font-family: helvetica neue, helvetica, arial, sans-
    serif; color: #4a4646; padding-bottom: 0px;">to start saving</td>
    </tr>
    </tbody>
    </table>

Helvetica Neue 不是网络安全字体,因此您在大多数电子邮件客户端中看到的是 Helvetica。要使用 Helvetica Neue,您需要使用 @import 或 link 在 <head> 中创建一个 link 以使其在电子邮件中工作。您还需要 link 到网络字体。

即使使用网络字体,Helvetica Neue 也无法在 Gmail 或 Outlook 中使用。 Gmail 不支持网络字体,Outlook 似乎会忽略名称中带有 space 的字体。

您发现了使用 Helvetica 作为 Helvetica Neue 的备用字体的问题,即字体具有不同的尺寸,因此当您在两个不同的客户端(例如 Apple Mail 和Gmail.

如果你使用 Font-weight: 100; 最轻的字体 Neue 看起来和 Helvetica 不一样。如果该变化不影响您的电子邮件布局,则使用 Helvetica 作为后备。否则尝试另一种可能更符合您需要的网络安全字体。例如,Lucida Grande, Trebuchet MS 可能是更好的后备字体。

有关详细信息,请查看此 links:

网络字体终极指南

其他有用的资源:

祝你好运。