How to host google web fonts on my own server?

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

    There is a very simple script, written in plain Java, to download all fonts from a Google Web Font link (multiple fonts supported). It also downloads the CSS file and adapts it to local files. The user-agent can be adapted to get also other files than only WOFF2. See https://github.com/ssc-hrep3/google-font-download

    The resulting files can easily be added to a build process (e.g. a webpack build like vue-webpack).

提交回复
热议问题