email-builder-core icon indicating copy to clipboard operation
email-builder-core copied to clipboard

Web fonts

Open michaelpwilson opened this issue 10 years ago • 1 comments

It seems web fonts are stripped out from the email.

Is there support for using webfonts with email builder?

I'm looking for similar functionality to how Zurb Ink's inliner ihandles web fonts.

It converts:

<link href='https://fonts.googleapis.com/css?family=Roboto:500' rel='stylesheet' type='text/css'>

to this:

@font-face {
   font-family: 'Roboto';
   font-style: normal;
   font-weight: 500;
   src: local('Roboto Medium'), local('Roboto-Medium'), url('https://fonts.gstatic.com/s/roboto/v15/RxZJdnzeo3R5zSexge8UUaCWcynf_cDxXwCLxiixG1c.ttf') format('truetype');
 }

michaelpwilson avatar Dec 10 '15 11:12 michaelpwilson

Try adding the data-embed-ignore attribute to your link tag so the inliner avoids processing or stripping that line of code.

notasausage avatar Dec 14 '15 16:12 notasausage