【发布时间】:2017-08-31 01:34:07
【问题描述】:
我正在使用@font-face 来显示我购买的字体并且是自托管的。它在 Apple 设备上运行良好,但在某些版本的 Outlook 和 Android 中,我的文本没有显示在 - 只是文本内容应该在的一个大空白区域。
这是我的代码:
<head>
<style type="text/css">
@media screen {
@font-face {
font-family: 'ElenaWebBasic';
src: url('https://www.xyz.co.uk/webfonts/ElenaWebBasicBold/ElenaWebBasicBold.eot');
src: url('https://www.xyz.co.uk/webfonts/ElenaWebBasicBold/ElenaWebBasicBold.eot?#iefix') format('embedded-opentype'),
url('https://www.xyz.co.uk/webfonts/ElenaWebBasicBold/ElenaWebBasicBold.woff2') format('woff2'),
url('https://www.xyz.co.uk/webfonts/ElenaWebBasicBold/ElenaWebBasicBold.woff') format('woff');
font-weight:700;
font-style:normal;
}
h1 {
font-family:'ElenaWebBasic',Georgia,serif !important;
font-weight:700 !important;
}
}
</style>
</head>
然后在里面,在<body> 的最顶部,我有以下内容:
<!--[if mso]>
<style type="text/css">
h1 {font-family: Georgia,serif !important; font-weight:400 !important;}
</style>
<![endif]-->
我假设 Outlook 会默认使用 Georgia,serif 字体,但它根本不显示文本。
【问题讨论】:
标签: fonts html-email font-face