LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-18-2016, 02:34 PM   #1
James0806
Member
 
Registered: Jul 2014
Posts: 41

Rep: Reputation: Disabled
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

Last edited by James0806; 04-18-2016 at 02:37 PM.
 
Old 04-21-2016, 12:13 PM   #2
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
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.

Last edited by Shadow_7; 04-21-2016 at 12:21 PM.
 
Old 04-21-2016, 12:23 PM   #3
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
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.
 
  


Reply

Tags
fonts command line



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
rpm showing already installed,but not installed actually keerthikishore Linux - Newbie 7 02-06-2012 03:35 AM
[SOLVED] How to get MS fonts installed on /usr/share/fonts ? marco@slack Linux - Software 3 06-27-2009 06:59 AM
xmms and audacity display prob- Not Showing fonts in menu. linux4begin Ubuntu 0 10-17-2007 07:08 AM
Konsole showing regular and bold fonts as the same mcpchandra Fedora 0 09-13-2006 02:24 PM
Fonts not showing up in xfontsel cupoftea Linux - Newbie 3 05-24-2006 01:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration