How to locate a font in Ubuntu?
Ubuntu desktop with 12.04 is about to crash. Installed 13.04 on a new machine, want to transfer Book Antiqua font from old machine to the new one. How do I find it on the old machine? My /usr
directory is empty.
My fonts.conf
file has these lines:
<!-- Font directory list -->
<dir>/usr/share/fonts</dir>
<dir>/usr/x11R6/lib/X11/fonts</dir>
<dir>/usr/local/share/fonts</dir>
<dir>~/.fonts</dir>
Don't know what this means, but my /usr
directory has nothing in it.
Solution 1:
I use fc-list
command to view the list of fonts installed.
Solution 2:
Secret Locations:
The secret locations of your fonts whereabouts are defined in
/etc/fonts/fonts.conf
.gedit /etc/fonts/fonts.conf
Standard Locations:
/usr/share/fonts /usr/local/share/fonts /home/<username>/.fonts #where <username> is your user name
Note that the
.fonts
folder is a hidden folder.
Source: Where Are Fonts Stored / Located In Ubuntu?
Solution 3:
I've found that fonts can be installed for Precise (12.04) and Trusty (14.04) in
~/.local/share/fonts
Solution 4:
To know where are fonts, ask Ubuntu in a terminal:
whereis fonts
Sample reply:
fonts: /etc/fonts /usr/share/fonts
The first path has the fonts.conf file which specifies font settings and other locations. The second one is what you are looking for as the default fonts system directory.