GNU/Linux >> Linux の 問題 >  >> Ubuntu

Google Fontsをダウンロードしますか?

すべてのgoogleフォントをダウンロードしてUbuntuで利用できるようにすることは可能ですか?これは私のウェブ開発に役立ちます。

承認された回答:

webupd8を信頼する場合:

cd ~/Downloads && wget http://webupd8.googlecode.com/files/install-google-fonts
chmod +x install-google-fonts
./install-google-fonts

ダウンロードせずに確認する必要がある場合:これは「install-google-fonts」のソースコードです:

$ more install-google-fonts 
# Original author: Michalis Georgiou <[email protected]>
# Modified by Andrew http://www.webupd8.org <[email protected]>

sudo apt-get install mercurial

_hgroot="https://googlefontdirectory.googlecode.com/hg/"
_hgrepo="googlefontdirectory"

echo "Connecting to Mercurial server...."
if [ -d $_hgrepo ] ; then
    cd $_hgrepo
    hg pull -u || return 1
    echo "The local files have been updated."
    cd ..
else
    hg clone $_hgroot $_hgrepo || return 1
fi
echo "Mercurial checkout done or server timeout"
sudo mkdir -p /usr/share/fonts/truetype/google-fonts/
find $PWD/$_hgrepo/ -name "*.ttf" -exec sudo install -m644 {} /usr/share/fonts/t
ruetype/google-fonts/ \; || return 1
fc-cache -f > /dev/null
echo "done."

Ubuntu
  1. UbuntuにGoogleChromeをインストールする方法

  2. FontManager0.8を使用してUbuntuにGoogleFontsをインストールする

  3. 自動更新?

  1. エコー$は何ですか?行う??

  2. $ catalina_homeをエコーできませんか?

  3. Google Earth 6でフォントを修正する方法は?

  1. UbuntuにGoogleFontsをインストールする方法

  2. Ubuntuにフォントをインストールする方法

  3. Ibusを無効にすることの欠点は?