HTML5离线缓存谷歌字体API [英] HTML5 offline cache google font api
问题描述
我正在尝试创建一个离线HTML5测试应用程序,同时正在使用新的google fonts api。有没有人有任何想法如何缓存远程字体?简单地将api调用放在缓存清单中是行不通的,我认为这是因为api实际上加载了其他文件(ttf,eot等)。
I'm trying to create an offline HTML5 test application, and am playing with the new google fonts api at the same time. Does anyone have any ideas how to cache the remote fonts? Simply putting the api call in the cache manifest doesn't work, I assume this is because the api actually loads other files (ttf, eot, etc).
任何想法如果使用字体api离线是可能的吗?
Any ideas if using the font api offline would be possible?
作为参考,这是我正在进行的通话:
For reference this is the call I am making:
http://fonts.googleapis.com/css?family=IM+Fell+English|Molengo|Reenie+Beanie
推荐答案
如果您将该URL粘贴到浏览器地址栏中,您将看到CSS链接到的文件:
If you paste that URL into the browser address bar you'll see the files the CSS links to:
http://themes.googleusercontent.com/font?kit=txVk61PTIsDrQQj2fK-76Q
http://themes.googleusercontent.com/font?kit=ljpKc6CdXusL1cnGUSamX_cCQibwlboQP4eCflnqtq0
http://themes.googleusercontent.com/font?kit=xwIisCqGFi8pff-oa9uSVOj-KzHqS7w8OFmqoAXdQwE
这篇关于HTML5离线缓存谷歌字体API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!