12

MailChimp に Google Web フォントを取り込もうとしてきましたが、解決策が見つかりません。

@import を使用して、Campaign Monitor のサイトにリストされているアプローチを試しました。

http://www.campaignmonitor.com/blog/post/3897/using-web-fonts-in-email

しかし、プレビューしようとすると次のエラーが発生します。

An error occurred parsing your template CSS:
Cannot find a CSS file at: http://fonts.googleapis.com/css?family=Montserrat

MailChimp 内でカスタム フォントを使用できた人はいますか?

4

3 に答える 3

25

@import 構文では不可能であることがわかりました。タグを使用して機能します:

<link href='http://fonts.googleapis.com/css?family=Montserrat' rel='stylesheet' type='text/css'>
于 2013-01-20T17:29:15.223 に答える
2

I have been building emails a lot using mailchimp recently and I had been scratching my head over this for a while. These are my findings:

  • works for google fonts.

  • @import works for fonts hosted through other sites then google (for ex. your personal site)

  • using something like:

<link href='http://fonts.googleapis.com/css?family=Montserrat' rel='stylesheet' type='text/css'>

  • using @import for google fonts gives you an error in mailchimp (like the one horizens posted).

  • base64 works as well. But the code can get way to long and cause other problems.

  • Firefox blocks the fonts in Mailchimp preview (because it's https).

PS: different but related topic: Making responsive emails is not as terrible as the people of the internet claim.

于 2013-10-24T11:04:18.243 に答える