GNU/Linux >> Znalost Linux >  >> Ubuntu

Stahování Google Fonts?

Je možné stáhnout všechny google fonty a mít je k dispozici pod Ubuntu? To by pomohlo mému webdev.

Přijatá odpověď:

Pokud důvěřujete webupd8:

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

Pro případ, že by to někdo potřeboval zkontrolovat bez stahování:toto je zdrojový kód pro „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. Automatická aktualizace?

  2. Nemůže Echo $catalina_home?

  3. Jak opravit písma v aplikaci Google Earth 6?

  1. Jak nainstalovat Google Chrome na Ubuntu

  2. Použijte FontManager 0.8 k instalaci Google Fonts v Ubuntu

  3. Co dělá Echo $? Dělat??

  1. Jak nainstalovat písma Google v Ubuntu

  2. Jak nainstalovat písma na Ubuntu

  3. Nevýhoda deaktivace Ibusu?