How to host google web fonts on my own server?

前端 未结 19 2033
闹比i
闹比i 2020-11-27 09:10

I need to use some google fonts on an intranet application. The clients may or may not have internet connection. Reading the license terms, it appears that its legally allo

19条回答
  •  隐瞒了意图╮
    2020-11-27 09:42

    I have a script written in PHP similar to that of @neverpanic that automatically downloads both the CSS and fonts (both hinted and unhinted) from Google. It then serves the correct CSS and fonts from your own server based on the User Agent. It keeps its own cache, so fonts and CSS of a User Agent will only be downloaded once.

    It's in a premature stage, but it can be found here: DaAwesomeP / php-offline-fonts

提交回复
热议问题