Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/34.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Css 使用尽可能多的unicode字符将Google webfont作为ttf获取?_Css_Unicode_Truetype_Google Font Api_Woff2 - Fatal编程技术网

Css 使用尽可能多的unicode字符将Google webfont作为ttf获取?

Css 使用尽可能多的unicode字符将Google webfont作为ttf获取?,css,unicode,truetype,google-font-api,woff2,Css,Unicode,Truetype,Google Font Api,Woff2,下载Google webfont的css资源时,结果似乎取决于浏览器 当我使用浏览器(Firefox或Chrome)打开此URL时: 我得到了一个包含不同unicode字符范围的几个woff2字体源 例如,当使用CURL下载相同的CSS资源URL时,我只得到一个.ttf字体,它似乎只包含默认的unicode字符范围 显然,Google会查看HTTP请求中的代理字符串,然后相应地调整结果 有没有一种方法可以获得具有完整unicode字符范围的.ttf,即“multi-woff2”版本中包含的所有内

下载Google webfont的css资源时,结果似乎取决于浏览器

当我使用浏览器(Firefox或Chrome)打开此URL时:

我得到了一个包含不同unicode字符范围的几个woff2字体源

例如,当使用CURL下载相同的CSS资源URL时,我只得到一个.ttf字体,它似乎只包含默认的unicode字符范围

显然,Google会查看HTTP请求中的代理字符串,然后相应地调整结果

有没有一种方法可以获得具有完整unicode字符范围的.ttf,即“multi-woff2”版本中包含的所有内容?最重要的是拉丁和拉丁扩展字符

我可以将woff2字体转换为ttf。但是我不知道如何将多个woff2字体组合或合并到一个ttf中,或者合并到一个woff2中,然后再进行转换


或者我做错了什么,我应该使用不同的方法吗?

如果你在谷歌字体网站上选择字体,它会显示一个带有CSS代码的对话框,用作webfont。谷歌确实会向你的访问者的浏览器发送一个特定的版本,这取决于它支持什么

如果您想要“完整”字体,请单击下载按钮获取桌面版本的.ttf文件。它将具有所有OpenType功能和未子集字符集支持

https://fonts.googleapis.com/css?family=Roboto