inconsolata 字体来自 Google,字体仓库在这 https://github.com/google/fonts
brew tap homebrew/cask-fonts
brew install font-inconsolata
==> Downloading https://github.com/google/fonts/raw/main/ofl/inconsolata/Inconsolata%5Bwdth%2Cwght%5
-=O=- # # # #
curl: (7) Failed to connect to github.com port 443: Operation timed out
Error: Download failed on Cask 'font-inconsolata' with message: Download failed: https://github.com/google/fonts/raw/main/ofl/inconsolata/Inconsolata%5Bwdth%2Cwght%5D.ttf
已经开了代理,在不同时段尝试安装过,都会报这个错误,已经查了一些材料,没有解决。
不用 brew 单独下载字体是可以的,说明代理有作用,不然 Github 都登不了,在 Github Action 里用上述命令安装字体是 OK 的
==> Tapping homebrew/cask-fonts
Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask-fonts'...
Tapped 1736 casks (1,768 files, 12.6MB).
==> Downloading https://github.com/google/fonts/raw/main/ofl/inconsolata/Inconsolata%5Bwdth%2Cwght%5D.ttf
==> Downloading from https://raw.githubusercontent.com/google/fonts/main/ofl/inconsolata/Inconsolata%5Bwdth%2Cwght%5D.ttf
Warning: No checksum defined for cask 'font-inconsolata', skipping verification.
Warning: macOS's Gatekeeper has been disabled for this Cask
==> Installing Cask font-inconsolata
==> Moving Font 'Inconsolata[wdth,wght].ttf' to '/Users/runner/Library/Fonts/Inconsolata[wdth,wght].ttf'
🍺 font-inconsolata was successfully installed!
为啥我本地的网络就这么差?homebrew/cask-fonts 这个仓库没有国内镜像,这是为啥?