Skip to main content
All CollectionsFAQMarketing Automation
Can I upload my font to the HTML e-mail template?
Can I upload my font to the HTML e-mail template?
M
Written by Martyna Woźniszczuk
Updated over 3 years ago

Yes. If you are uploading your HTML template, all you need to do is:

  1. to add the following code block to the <head> section; let's assume, as an example, that you want to replace font with Roboto

 <!--[if !mso]><!-- -->
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
<!--<![endif]-->

<style>
@media {
@font-face {
font-family: 'Roboto';
font-style: normal;
font-weight: 400;
src: local('Roboto'), url(https://fonts.gstatic.com/s/roboto/v19/KFOmCnqEu92Fr1Mu7WxKKTU1Kvnz.woff2) format('woff2');
}
}
</style>

<style>
@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');
</style>

<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Roboto&display=swap" rel="stylesheet">

2. to replace all parts of the code responsible for font-family

style="font-family: 'Roboto', sans-serif;"
Did this answer your question?