Adding web fonts to HTML email in Luminate

Options
Hello, everyone.


import, but that isn't working.


I know that web fonts will not work on most email platforms. But, the client wants to use them for those subscribers who use platforms that do.


Has anyone else been able to successfully add web fonts to their emails on Luminate?


Any help would be greatly appreciated!


Kevin
Tagged:

Comments

  • Hey Kevin. The solution we've found for this is to add <style type="text/css"> info into the email itself, using the plain text editor - it appears above everything else that starts your email (any preheader, any banner, any body, etc.)


    Here's the full example we use for some emails currently - it's calling in "normal" fonts, but you can use it with web fonts too. Hope you find this useful.


    Cheers,

    Grace


    <style type="text/css"><!--

    BODY {

    color: #000000;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 10pt;

    }


    td

    {

    font-size:10pt;

    font-family:Arial, Helvetica, sans-serif !important;

    }


    table

    {

    background-color: #ffffff;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 10pt;

    }


    OL

    {

    font-size: 10pt;

    font-family: Arial, Helvetica, sans-serif;

    }


    LI

    {

    font-size: 10pt;

    font-family: Arial, Helvetica, sans-serif;

    margin-top: 0px;

    }


    UL

    {

    font-size: 10pt;

    font-family: Arial, Helvetica, sans-serif;

    margin-top: 0px;

    }


    P

    {

    font-size: 10pt;

    font-family: Arial, Helvetica, sans-serif !important;

    }


    }

    A:link { color: #003366;

    font-family: Arial, Helvetica, sans-serif !important;

    font-size: 10pt !important;

    }

    A:visited { color: #003366;

    font-family: Arial, Helvetica, sans-serif !important;

    font-size: 10pt !important;

    }

    A:hover, A:active { color: #0000FF;

    font-family: Arial, Helvetica, sans-serif !important;

    font-size: 10pt !important;

    }

    --></style>
  • Hi Kevin,

    Try calling your webfont and using @import in the html section of your Stationery.


    For example:

    <link href="https://fonts.googleapis.com/css?family=Ubuntu:300,400,500,700" rel="stylesheet" type="text/css">
    <style type="text/css">
    @import url(https://fonts.googleapis.com/css?family=Ubuntu:300,400,500,700);
    </style>
    As you are aware, not all email providers will render it, but most will and you can always use a web safe font as fallback.


    Hope this helps!

    Robin

  • This is my go to from Litmus:
    https://www.litmus.com/blog/the-ultimate-guide-to-web-fonts/


    It has been updated in the last few months to account for current functionality.


    I just used it the other day.


    Thanks,


    Phil

Categories