Google网络字体与实际字体文件-适用于所有设备 [英] Google Web-fonts vs Actual font files - For all devices
问题描述
我希望使用Joesfin Sans.它在Google网络字体上列出.我也有.eot,.svg,.ttf和.woff.这意味着与文件完全兼容(据我所知).
I'm looking to use Joesfin Sans. It's listed on Google web fonts. I also have the .eot, .svg, .ttf and the .woff. This means full compatibility with the files (as far as I know).
我的主要问题是:哪个更好? Google字体加载速度更快吗?它更兼容吗?还是应该坚持使用文件?
My main question is: which is better? Does Google Fonts load faster? Is it more compatible? Or should I stick with the files?
推荐答案
如果您想要快速简便的解决方案,请嵌入字体加载器代码并继续. Google经常在其服务中添加更多选项/功能.
If you want the quick and easy solution, embed the font loader code and move on. Google is frequently adding more options/features to their service.
我个人更喜欢从Google下载文件并手动使用它们.由于存在专门用于下载您选择的字体的Google UI(并且通过阅读许可协议),我认为这是合法使用,但我不是律师.
Personally, I prefer to download the files from Google and work with them manually. Since there is a Google UI specifically for downloading your selected fonts (and from reading the license agreement) I believe this is legitimate use, but I'm not a lawyer.
我为什么要这样做?
-
访问Google字体时,我遇到了延迟(200-300ms).尽管这并不可怕,但是我的大多数服务器环境响应速度都更快,并且字体是页面的重要先决条件.碰到单独的域(即浏览器并行化到不同的主机)所带来的任何好处都将丢失.
I have experienced latency when accessing Google fonts (200-300ms). While this isn't terrible, most of my server environments respond faster and a font is an important prerequisite for a page. Any benefit from hitting a separate domain (i.e. parallelization to different hosts by the browser) is lost.
我已经手动修剪了字体文件,以删除所有不需要的字形.这样可以减小文件大小.
I've manually trimmed the font files to remove all unwanted glyphs. This results in a smaller file size.
IE8支持-似乎并非总是下载.eot
.
IE8 support--it appears the .eot
doesn't always get downloaded.
这些原因主要是轶事,但是我自己管理字体文件时更加开心.
These reasons are mostly anecdotal but I have been much happier managing the font files myself.
这篇关于Google网络字体与实际字体文件-适用于所有设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!