12

I want to use google web font "Over the Rainbow" when composing mail in gmail

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

Is it possible?

<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>
Nitin Sawant
  • 7,278
  • 9
  • 52
  • 98
  • 2
    At least Gmail supports webfonts for Google’s own mail. [This](http://i.stack.imgur.com/nsX7Y.png) is mail from 'Google+ Hangouts' - the font Roboto is included in the `` of the mail. – phils May 25 '13 at 20:27

1 Answers1

15

I wish the answer were different, but I do not believe it is currently possible.

I don't believe Gmail will allow you to insert a link element into the message body (although some email clients will).

Gmail will not allow you to run JavaScript within the message.

David Smith
  • 38,044
  • 11
  • 44
  • 61
  • Google web font is simply a CSS file, outlook.com supports adding web-font when editing the email as HTML but after sending the message the font formatting vanishes – Nitin Sawant Aug 08 '12 at 08:50
  • 6
    Isn't it ironic that Google Webfonts work in almost every mail client except for Google's..... – user1380540 Jan 19 '17 at 22:25
  • I almost went insane trying to deduce why fonts were rendering everywhere except for the gmail _web_ client. Kudos. – RomoCode Feb 28 '19 at 05:22
  • This answer is 10 years old and no longer valid, imo. You can add webfonts as simple CSS now. – kontur Jun 30 '21 at 12:00
  • 1
    @kontur based on your comment: are you stating that Gmail now allows webfonts, or only saying that you now can add webfonts as simple CSS in general (but Gmail still wont accept them )...? Please clarify – jenciso Dec 27 '21 at 18:27