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 |
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. |
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 09:24 AM. |