如何使用 Google Web Fonts
的有关信息介绍如下:进入Google Web Fonts 主页:
点击“开始选择字体”;
从200+字体中选择想要的字体(可惜没有中文字体),选择“使用”;
设置你选择字体的样式和字符集;
把字体加到你的网站:
方法一:标准式:在head部分加入一串 link 样式,引入Google字库:;
方法二:@import 式:@import url(
|Rosario);
方法三:js引入:
WebFontConfig = {
google: { families: [ 'Comfortaa:latin', 'Rosario:latin' ] }
};
(function() {
var wf = document.createElement('script');
wf.src = ('https:' == document.location.protocol ? 'https' : 'http') +
'://
wf.type = 'text/javascript';
wf.async = 'true';
var s = document.getElementsByTagName('script');
s.parentNode.insertBefore(wf, s);
})();5.然后就可以和普通字体一样设置样式了。
WP可以使用WP Google Fonts插件。