我有一个模板,它引用了这样一种 Google 字体:
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400italic,600italic,400,600,300' rel='stylesheet' type='text/css'>
我如何下载它并将其设置为在我一直离线运行的页面中使用?
最佳答案
checkout google webfonts helper
它可以让你下载谷歌的每一种网络字体,并为实现建议 css 代码。 该工具还允许您轻松地一次性下载所有格式。
Ever wanted to know where Google hosts their webfonts? This service might be handy if you want to download all .eot, .woff, .woff2, .svg, .ttf files of a font variant directly from google (normally your User-Agent would determine the best format).
另请查看他们的 Github page .
关于css - 下载 Google 字体并设置使用它的离线站点,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15930003/