How to host google web fonts on my own server?

前端 未结 19 2064
闹比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:25

    As you want to host all fonts (or some of them) at your own server, you a download fonts from this repo and use it the way you want: https://github.com/praisedpk/Local-Google-Fonts

    If you just want to do this to fix the leverage browser caching issue that comes with Google Fonts, you can use alternative fonts CDN, and include fonts as:

    
    

    Or a specific font, as:

    
    

提交回复
热议问题