Forum Discussion

kandulmadhu's avatar
10 years ago

Using custom fonts in email templates

Hi,
Is it possible to use custom fonts in email templates? If yes, how to use them?
Also, is there any list of standard fonts that we can directly use in email templates?

 

Your help will be really appreciated.
Thanks,
Madhu

    • kandulmadhu's avatar
      kandulmadhu
      Advisor

      Hi Grazitti,

      Thanks for your help.

      I have tried including custom fonts in email templates but it was unsuccessful. Have you tried using them successfully?

       

      The following is the code snippet i have added in my email template:

       

      <style>

      @font-face {
      font-family: 'FrutigerNext-Regular';
      src: url("${webUi.toStaticAssetUrl('/html/assets/FrutigerNext-Regular.eot')}"); /* IE9 Compat Modes */
      src: url("${webUi.toStaticAssetUrl('/html/assets/FrutigerNext-Regular.woff')}") format('woff'), /* Modern Browsers */
      url("${webUi.toStaticAssetUrl('/html/assets/FrutigerNext-Regular.ttf')}") format('truetype'), /* Safari, Android, iOS */
      url("${webUi.toStaticAssetUrl('/html/assets/FrutigerNext-Regular.svg')}") format('svg'); /* Legacy iOS */
      }

      </style>

       

      This font is not getting applied in my Outlook client though.

      Can you send me the correct syntax for this?

      Thanx in advance,

      Madhu