@font-face 文件存储在客户端的哪里?
当您使用@font-face协议时,客户端实质上是从服务器下载字体。该文件存储在客户端计算机上的什么位置?它存储在物理驱动器上还是仅存储在内存中?客户获取该文件有多容易?
When you use the @font-face protocol, the client essentially downloads the font from the server. Where is this file stored on the client's computer? Is it stored on the physical drive or just in memory? How easy is it for the client to obtain the file?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
浏览器想要的任何地方(可能包括仅在 RAM 中)。
琐碎的。他们可以从 CSS 文件中读取 URL,如果没有别的办法的话,可以手动下载它。
Wherever the browser wants (including, possibly, only in RAM).
Trivial. They can read the URL from the CSS file and download it manually if nothing else.
我认为可能担心的是字体的分发是如何工作的(版权),因为人们将能够下载它们(为什么?因为字体像服务器中的任何文件一样远程存储,因此它们充当缓存),使其成为非法分发那些没有免费许可证的人,这几乎是 @font-face 的缺点之一,你如何解决它?要么对我们的版权字体进行编码,要么继续使用免费分发字体。
检查此链接,您可以阅读更多有关 @font-face 性能的信息,例如...加载字体需要多少时间,希望您发现它有帮助!
http://www.stevesouders.com/blog/ 2009/10/13/字体与性能/
I think the may concern is how distribution of fonts work (copyright), since people will be able to download em (why? because fonts are remotely stored like any file in your server so they work as cache), making it an illegal distribution for those that don't have a free license, that's pretty much one of disadvantages of @font-face, how you could fix it? Well either encode our copyright fonts or keep using free distribution fonts.
Check this link you can read a little bit more about performance of @font-face like... how much does it take to load fonts, hope you find it helpful!
http://www.stevesouders.com/blog/2009/10/13/font-face-and-performance/