Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to use google web fonts in gmail

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>
like image 703
Nitin S Avatar asked Jun 29 '11 06:06

Nitin S


People also ask

Can you use web fonts in email?

Web safe fonts are what you're most likely using in your emails right now. Fonts such as Arial, Verdana, Georgia, Times New Roman, and Courier are considered web safe fonts that can be used for live text in email because they're the default fonts that are found on different computers, devices, and operating systems.

Can Google fonts be used in email templates?

Adding a custom font to an email template allows you to use your brand's fonts in email messaging. You can use Google Fonts, Adobe Typekit, or self-hosted fonts in your emails. However, keep in mind that only certain email clients support custom fonts, and many popular clients (like Gmail and Yahoo) do not.


1 Answers

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.

like image 117
David Smith Avatar answered Sep 18 '22 09:09

David Smith