2011-06-29 42 views
9

我想使用谷歌Web字体“飞越彩虹”在Gmail中撰写邮件时是否有可能使用谷歌网页字体在Gmail

<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> 
+2

至少Gmail支持Google自己邮件的网页字体。 [This](http://i.stack.imgur.com/nsX7Y.png)是来自“Google+环聊”的邮件 - 字体Roboto包含在邮件的“”中。 – phils

回答

12

我希望答案是不同的,但我不相信这是现在可能的。

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

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

+1

我希望将来在Gmail中提供网页字体 –

+0

Google网页字体只是一个CSS文件,outlook.com支持在编辑电子邮件时添加网页字体为HTML,但在发送消息后字体格式消失 –

+2

是不是具有讽刺意味的是Google Webfonts几乎可以在除Google以外的每个邮件客户端上运行..... – user1380540

相关问题