css - 下载 Google 字体并设置使用它的离线站点

标签 css fonts offline google-fonts

我有一个模板,它引用了这样一种 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/

相关文章:

jquery - 为什么我的 anchor 标签不起作用?

Android Studio 2.1 - 我想要字体抗锯齿/平滑

Android 任何适用于离线工作的 android 2.3 或更高版本的语音到文本的 API?

node.js - 如何在断开连接的计算机上安装 npm 模块,确保所有依赖项

javascript - 宽度为 : 100%; 时流体图像重叠 div

javascript - 如何制作滑动图片/框架?

flutter - Flutter 应用中的 Google 字体包不起作用

css - 在 Photoshop 和浏览器中看起来不同的字体

javascript - 在移动 html 应用程序中保存表单文件字段状态

html - 在父级中并排获取 div?