谷歌字体被墙,有什么好的解决方法

refs:

https://www.zhihu.com/question/20587762


安装 Google WebFont Downloader

我们通过安装 Google WebFont Downloader 来完成这项工作,在终端键入以下命令进行全局安装:

npm install -g goog-webfont-dl

下载字体

比如我目前用的:

<link href="http://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,900" rel="stylesheet" type="text/css" />


我们就可以键入以下命令(注意此时应在翻墙状态):

goog-webfont-dl -a -f 'Source Sans Pro' -y '300,400,600,900'

猜你喜欢

转载自blog.csdn.net/henry_wu001/article/details/79457175