
運行一些八度文件時,我收到以下警告/錯誤。我已經homebrew
按照指南安裝了八度這裡。似乎我必須從配置中刪除該行,但找不到它的儲存位置。
Fontconfig warning: line 146: blank doesn't take any effect anymore. please remove it from your fonts.conf
答案1
警告的原因是當您升級 fontconfig 時,它不會覆寫舊的 fonts.conf 檔案。
就我而言,完整路徑是/usr/local/etc/fonts/fonts.conf
若要解決此問題,請刪除(或重新命名)舊的 fonts.conf 檔案並重新安裝 fontconfig。
mv /usr/local/etc/fonts/fonts.conf /usr/local/etc/fonts/fonts.conf.bak
brew reinstall fontconfig
該文件將自動重新產生新版本。
答案2
如果 fontconfig 是透過 homebrew 安裝的,則該檔案位於此處:/usr/local/etc/fonts/fonts.conf
查看brew info fontconfig
測試包是否已安裝。
答案3
應該在這裡:
~/Library/Fonts/fonts.conf