如何从(官方)Google Web Fonts 存储库下载多种格式的 Web 字体? [英] How to download multiple formats of a web font from the (official) Google Web Fonts repo?

查看:34
本文介绍了如何从(官方)Google Web Fonts 存储库下载多种格式的 Web 字体?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我了解到 Google 会自动提供 TTFEOTWOFFSVG 字体文件,具体取决于在浏览器/设备上访问它.

I've learnt that Google automatically serves TTF, EOT, WOFF, or SVG font files depending on the browser / device it's accessed from.

现在我计划从我的服务器本身托管和提供字体文件,为此我首先必须下载网络字体的所有文件格式.

Now I am planning to host and serve the font files from my server itself, for which I would first have to download all the file formats of the web font(s).

如何或在哪里可以下载我想要使用的网络字体的 4 种文件格式?

How or where can I download the 4 file formats for a web font that I would like to use?

PS:通过使用不同的浏览器——Chrome、IE9 和 Safari(开发——iPhone UA),我能够获得 WOFF、EOT 和 TTF 格式.但是 SVG 格式不走运.如果有更简单的方法就太好了.

PS: By using different browsers -- Chrome, IE9 and Safari (dev - iPhone UA), I was able to get the WOFF, EOT and TTF formats. No luck with the SVG format though. It would be awesome if there's an even simpler way.

哦,顺便说一下,我知道我可以从 fontsquirrel,但我说的是从这里的官方仓库下载.

Oh, and by the way, I do know that I can download various formats from fontsquirrel, but I am talking about downloading from the official repo here.

推荐答案

您可以在 http://上克隆 Google webfonts 目录code.google.com/p/googlefontdirectory/

您还可以在 http://code.google.com/p/获取单个字体文件googlefontdirectory/source/browse/#font_name

这篇关于如何从(官方)Google Web Fonts 存储库下载多种格式的 Web 字体?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆