unicode - 获取分为 unicode 范围的 json 格式的 google 字体列表
问题描述
我使用https://developers.google.com/fonts/docs/developer_api获取 google 字体列表。
格式是这样的
{
"kind": "webfonts#webfontList",
"items": [
[...]
{
"kind": "webfonts#webfont",
"family": "Anonymous Pro",
"variants": [
"regular",
"italic",
"700",
"700italic"
],
"subsets": [
"greek",
"greek-ext",
"cyrillic-ext",
"latin-ext",
"latin",
"cyrillic"
],
"version": "v3",
"lastModified": "2012-07-25",
"files": {
"regular": "http://themes.googleusercontent.com/static/fonts/anonymouspro/v3/Zhfjj_gat3waL4JSju74E-V_5zh5b-_HiooIRUBwn1A.ttf",
"italic": "http://themes.googleusercontent.com/static/fonts/anonymouspro/v3/q0u6LFHwttnT_69euiDbWKwIsuKDCXG0NQm7BvAgx-c.ttf",
"700": "http://themes.googleusercontent.com/static/fonts/anonymouspro/v3/WDf5lZYgdmmKhO8E1AQud--Cz_5MeePnXDAcLNWyBME.ttf",
"700italic": "http://themes.googleusercontent.com/static/fonts/anonymouspro/v3/_fVr_XGln-cetWSUc-JpfA1LL9bfs7wyIp6F8OC9RxA.ttf"
}
},
{
"kind": "webfonts#webfont",
"family": "Antic",
在 github 存储库 https://github.com/asadkn 我发现了一个列表,其中包含 google 字体分为 unicode 范围: https ://raw.githubusercontent.com/asadkn/selfhost-google-fonts/master/inc/data/google -fonts-src.json
谷歌也提供这种格式吗?还有其他方法可以下载这种格式的数据吗?
解决方案
推荐阅读
- android - 列出 Android 中已注册的生物特征(和类型)
- qt - 在多页上打印 QGraphicsScene
- sql - 按付款类型划分的销售额组
- cefsharp - 我不能同时运行两个不同的 JSB 函数吗?
- html2canvas - 通过 ID html2canvas 获取元素时的空白画布
- docker - 无法在 docker 映像中缓存 maven 依赖项
- html - 当我正确链接文件时,外部 Css 不起作用
- sql - Tableau 中的自定义 SQL 查询
- linux-kernel - 如何使用 STM32MP1 分发包从 Cubemx 编译设备树?
- javascript - 路由内容未在 Vue-router 和 Laravel 中显示