LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Installed fonts not showing up as they usually do (https://www.linuxquestions.org/questions/linux-newbie-8/installed-fonts-not-showing-up-as-they-usually-do-4175577750/)

James0806 04-18-2016 02:34 PM

Installed fonts not showing up as they usually do
 
Hi For configuring fonts on the linux machine i usually copy fonts in the /usr/share/fonts under that a directory copy all the required fonts and
run fc-cache -fv /usr/share/fonts/fontdir
which usually caches all the fonts
to display it fc-list | grep -i "name of the font"
after doing this stuff it does not show up the fonts
the OS is Red Hat Enterprise Linux Server release 5.7 (Tikanga)



It does not show up all the fonts

[root@]# fc-cache -fv /usr/share/fonts/fonts/
/usr/share/fonts/fonts/: caching, 28 fonts, 0 dirs
/var/cache/fontconfig: cleaning cache directory
/root/.fontconfig: not cleaning unwritable cache directory
fc-cache: succeeded
[root@]# ls
16447 font_list.zip
[root@]# cd /usr/share/fonts/fonts/
[root@]# ls
ANTQUABI.TTF arialbd.ttf ARIALNB.TTF arial.ttf courbd.ttf FRE3OF9X.TTF GARAIT.TTF GOTHICBI.TTF GOTHIC.TTF LSANS.TTF
ANTQUAB.TTF arialbi.ttf ARIALNI.TTF barcode.ttf courbi.ttf FREE3OF9.TTF GARAMON3.TTF GOTHICB.TTF helr45w.ttf
ANTQUAI.TTF ARIALNBI.TTF ARIALN.TTF BKANT.TTF cour.ttf GARABD.TTF GARA.TTF GOTHICI.TTF LSANSD.TTF
[root@]# fc-list | grep -i lsans
[root@]# fc-list | grep -i arialbd
[root@]# fc-list | grep -i cour
Courier:style=Bold Italic
Courier:style=Regular ejné,Standard,ανονικά,Normaali,Normál,Normale,Standaard,Normalny,бнй,Normálne,Nava dno,thương,Arrunta
Courier 10 Pitch:style=Bold Italicby né kurz*va,fed kursiv,Fett Kursiv,ν
Courier New:style=Bold Italic,Negreta cursiva,tu ονα *λάγια,Negrita ná kurz*va,Fet Kursiv,Kalın İtalik,Krepko poševno,Lodi etzanao Corsivo,Vet Cursief,Halvfet Kursiv,Pogrubiona kursywa,Negrito Itálico,олжинй ив,Tu
Courier 10 Pitch:style=Italic
Courier 10 Pitch:style=Regular né,fed,Fett,ν
Courier New:style=Bold,Negreta,tu ονα,Negrita,Lihavoitu,Gras,Félkövér,Grassetto,Vet,Halvfet,Pogrubiony,Negrito,олжинй, Fet,Kalın,Krepko,ậm,Lodia
Courier:style=Italic
Courier 10 Pitch:style=Bold
Courier:style=Bold

Shadow_7 04-21-2016 12:13 PM

When you change the contents of a font directory you need to run mkfontscale and mkfontdir in that directory.

$ mv Downloads/*pcf* ./.fonts/
$ cd ./.fonts/
$ mkfontscale
$ mkfontdir
$ cd ../
$ xset fp+ /home/<user>/.fonts/
$ xset fp rehash
$ fc-cache -f -v

If you don't change the contents of the directory you can just fc-cache -f -v, if everything else is configured for the location. If the location is preconfigured in /etc/ by your distro like the /usr/share/ ones are then you don't need to run the xset things. Otherwise you do everytime you start X in addition to fc-cache.

Shadow_7 04-21-2016 12:23 PM

Also fc-list gives you the Face Name. A lot of older things use the other name as listed with xlsfonts and previewed with xfontsel.


All times are GMT -5. The time now is 12:09 PM.