【问题标题】:Is it possible to use google web fonts in gmail是否可以在 gmail 中使用谷歌网络字体
【发布时间】:2011-09-24 21:12:27
【问题描述】:

在 gmail 中撰写邮件时,我想使用 google 网络字体“Over the Rainbow”

 <link href='http://fonts.googleapis.com/css?family=Over+the+Rainbow&v2' rel='stylesheet' type='text/css'>

有可能吗?

<script type="text/javascript">
  WebFontConfig = {
    google: { families: [ 'Over+the+Rainbow' ] }
  };
  (function() {
    var wf = document.createElement('script');
    wf.src = ('https:' == document.location.protocol ? 'https' : 'http') +
      '://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js';
    wf.type = 'text/javascript';
    wf.async = 'true';
    var s = document.getElementsByTagName('script')[0];
    s.parentNode.insertBefore(wf, s);
  })(); </script>

【问题讨论】:

  • 至少 Gmail 支持 Google 自己的邮件的网络字体。 This 是来自“Google+ Hangouts”的邮件 - Roboto 字体包含在邮件的 &lt;head&gt; 中。

标签: email gmail google-webfonts


【解决方案1】:

我希望答案不同,但我认为目前不可能。

我认为 Gmail 不会允许您在邮件正文 (although some email clients will) 中插入链接元素。

Gmail 不允许您在邮件中运行 JavaScript。

【讨论】:

  • Google 网页字体只是一个 CSS 文件,outlook.com 支持在将电子邮件编辑为 HTML 时添加网页字体,但发送邮件后字体格式消失
  • Google Webfonts 几乎可以在所有邮件客户端中使用,除了 Google 的.....
  • 我几乎要疯了,试图推断为什么除了 gmail web 客户端之外,字体无处不在。荣誉。
  • 这个答案已有 10 年历史,不再有效,imo。您现在可以将 webfonts 添加为简单的 CSS。
  • @kontur 根据您的评论:您是说 Gmail 现在允许使用 webfonts,还是只是说您现在可以将 webfonts 添加为一般的简单 CSS(但 Gmail 仍然不会接受它们)...?请澄清
猜你喜欢
  • 2013-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2014-07-16
  • 2011-11-18
  • 2012-10-05
  • 1970-01-01
相关资源
最近更新 更多