2015-09-25 82 views
0

我有一个疑问,字体open-sans是不使用谷歌字体的安全字体吗?在电子邮件中使用没有Google字体的“Open Sans”字体

我不能用一个外部链接,如何:我

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

需要只使用FONT-FAMILY声明:

font-family: 'Open Sans', Arial, sans-serif; 
+0

你的意思是你可以使用它,而不必链接到字体? –

+1

在本地保存字体并在本地链接 - https://css-tricks.com/snippets/css/using-font-face/ - 查看 - http://www.fontsquirrel.com/fonts/open-sans –

回答

0

Download Open Sans并更改以下webfont到开放SANS字体名称。

font-family: 'Open Sans', Arial, sans-serif; 

@font-face { 
    font-family: 'MyWebFont'; 
    src: url('webfont.eot'); /* IE9 Compat Modes */ 
    src: url('webfont.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ 
     url('webfont.woff2') format('woff2'), /* Super Modern Browsers */ 
     url('webfont.woff') format('woff'), /* Pretty Modern Browsers */ 
     url('webfont.ttf') format('truetype'), /* Safari, Android, iOS */ 
     url('webfont.svg#svgFontName') format('svg'); /* Legacy iOS */ 
} 
+0

从CSS技巧好的副本;) – Aaron

+0

谢谢,它花了很多技能。 –

+0

伙计们,对不起,我想我没有表达自己的权利,我不能使用网络字体,我需要做的如何会像电子邮件营销,例如 –

相关问题