如何将托管字体加载到电子邮件模板中 [英] How do I load a hosted font into an email template
本文介绍了如何将托管字体加载到电子邮件模板中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我一直在尝试将托管字体(除Outlook之外的所有客户端)加载到我的电子邮件模板中但它似乎不起作用。
我尝试了什么:
Hi guys,
I've been trying to load a hosted font (for all clients but Outlook) into my email template but it does not seem to work.
What I have tried:
<style type="text/css" >
@media screen{
@font-face{
font-family: 'Archive';
font-style: normal;
font-weight: normal;
src:url(https://[DOMAIN NAME]/templates/ettu/assets/fonts/Archive.ttf.woff) format('woff');
}
}
</style>
我尝试了上述代码的不同变体并加载如下样式:
I've tried different variants of the above code and loading the style like this:
<p style="font-family: 'Archive', Arial, sans-serif;">TEXT HERE</p>
我无法找出我做错了什么,但它不起作用。任何建议将不胜感激。在此先感谢!
I can't find out what i'm doing wrong but it doesn't work. Any suggestions would be greatly appreciated. Thanks in advance!
推荐答案
某些电子邮件系统通过直接在HTML中嵌入字体来允许网络字体:电子邮件-Litmus Software,Inc。中的Web字体终极指南 [ ^ ]
Some Email systems do allow for web fonts by embedding the font directly in the HTML: The Ultimate Guide to Web Fonts in Email—Litmus Software, Inc.[^]
这篇关于如何将托管字体加载到电子邮件模板中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文