Font file directory - CentOS7, CentOS8
The directory of font files in CentOS is as follows
/usr/share/fonts
When you add fonts, place the font files in this directory. You can also create a subdirectory.
Show all fonts
You can use the find command to display all the fonts.
find /usr/share/fonts
Refine fonts
Combined with the grep command, you can narrow down the fonts. Let's narrow it down to just true type fonts.
find /usr/share/fonts | grep ttf
Here is a sample of the output result.
find /usr/share/fonts/japanese/TrueType /usr/share/fonts/japanese/TrueType/sazanami-gothic.ttf /usr/share/fonts/japanese/TrueType/sazanami-mincho.ttf /usr/share/fonts/en/TrueType/kochi-mincho-subst.ttf /usr/share/fonts/en/TrueType/kochi-gothic-subst.ttf /usr/share/fonts/bitstream-vera/VeraSe.ttf /usr/share/fonts/bitstream-vera/VeraBd.ttf /usr/share/fonts/bitstream-vera/Vera.ttf /usr/share/fonts/bitstream-vera/VeraMoBd.ttf /usr/share/fonts/bitstream-vera/VeraIt.ttf /usr/share/fonts/bitstream-vera/VeraSeBd.ttf /usr/share/fonts/bitstream-vera/VeraMoIt.ttf /usr/share/fonts/bitstream-vera/VeraMoBI.ttf /usr/share/fonts/bitstream-vera/VeraMono.ttf /usr/share/fonts/bitstream-vera/VeraBI.ttf