To be able to install fonts in ubuntu quickly, I found the following link useful:
https://askubuntu.com/questions/191778/how-to-install-many-font-files-quickly-and-easily
Step 1: Create the path in home directory:
$ mkdir ~/.fonts
Step 2: Place the fonts in this folder:
~/.fonts$ ls -l
total 2096
drwxr-xr-x 2 ubuntu ubuntu 4096 Feb 25 11:02 league-spartan
-rw-rw-r-- 1 ubuntu ubuntu 21379 Feb 25 10:59 league-spartan.zip
drwxrwxr-x 2 ubuntu ubuntu 4096 Nov 29 13:15 Montserrat
-rw-rw-r-- 1 ubuntu ubuntu 2104101 Feb 25 10:59 Montserrat.zip
~/.fonts$
Step 3: Install the fonts using the command:
~/.fonts/Montserrat$ fc-cache -f -v
/usr/share/fonts: caching, new cache contents: 0 fonts, 6 dirs
/usr/share/fonts/X11: caching, new cache contents: 0 fonts, 4 dirs
/usr/share/fonts/X11/Type1: caching, new cache contents: 8 fonts, 0 dirs
/usr/share/fonts/X11/encodings: caching, new cache contents: 0 fonts, 1 dirs
/usr/share/fonts/X11/encodings/large: caching, new cache contents: 0 fonts, 0 dirs
/usr/share/fonts/X11/misc: caching, new cache contents: 89 fonts, 0 dirs
/usr/share/fonts/X11/util: caching, new cache contents: 0 fonts, 0 dirs
/usr/share/fonts/cMap: caching, new cache contents: 0 fonts, 0 dirs
/usr/share/fonts/cmap: caching, new cache contents: 0 fonts, 5 dirs
/usr/share/fonts/cmap/adobe-cns1: caching, new cache contents: 0 fonts, 0 dirs
/usr/share/fonts/cmap/adobe-gb1: caching, new cache contents: 0 fonts, 0 dirs
/usr/share/fonts/cmap/adobe-japan1: caching, new cache contents: 0 fonts, 0 dirs
/usr/share/fonts/cmap/adobe-japan2: caching, new cache contents: 0 fonts, 0 dirs
/usr/share/fonts/cmap/adobe-korea1: caching, new cache contents: 0 fonts, 0 dirs
/usr/share/fonts/opentype: caching, new cache contents: 0 fonts, 2 dirs
/usr/share/fonts/opentype/malayalam: caching, new cache contents: 3 fonts, 0 dirs
/usr/share/fonts/opentype/noto: caching, new cache contents: 24 fonts, 0 dirs
/usr/share/fonts/truetype: caching, new cache contents: 0 fonts, 46 dirs
/usr/share/fonts/truetype/Gargi: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/Gubbi: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/Nakula: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/tibetan-machine: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/tlwg: caching, new cache contents: 58 fonts, 0 dirs
/usr/share/fonts/truetype/ttf-khmeros-core: caching, new cache contents: 2 fonts, 0 dirs
/usr/share/fonts/truetype/ubuntu: caching, new cache contents: 13 fonts, 0 dirs
/usr/share/fonts/type1: caching, new cache contents: 0 fonts, 1 dirs
/usr/share/fonts/type1/gsfonts: caching, new cache contents: 35 fonts, 0 dirs
/usr/local/share/fonts: caching, new cache contents: 0 fonts, 0 dirs
/home/mhc/.local/share/fonts: caching, new cache contents: 1 fonts, 0 dirs
/home/mhc/.fonts: caching, new cache contents: 0 fonts, 2 dirs
/home/mhc/.fonts/Montserrat: caching, new cache contents: 18 fonts, 0 dirs
/home/mhc/.fonts/league-spartan: caching, new cache contents: 1 fonts, 0 dirs
/var/cache/fontconfig: not cleaning unwritable cache directory
/home/mhc/.cache/fontconfig: cleaning cache directory
/home/mhc/.fontconfig: not cleaning non-existent cache directory
fc-cache: succeeded
~/.fonts/Montserrat$
We can verify that the fonts are installed by opening LibreOffice writer and typing the content is a particular font.
No comments:
Post a Comment