LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-01-2011, 10:29 AM   #1
TruongAn
Member
 
Registered: Dec 2004
Location: Vietnam (Việt Nam)
Distribution: Gentoo (desktop), Arch linux (laptop)
Posts: 728

Rep: Reputation: 33
Find a font using its name.


I have many fonts in my system that I've never used. I want to remove some of them but I don't know where were they. Is there command to list or find a font using its name?
For example with the input
Code:
Liberation Mono
I want to find
Code:
/usr/share/fonts/liberation-fonts/LiberationMono-Bold.ttf
/usr/share/fonts/liberation-fonts/LiberationMono-BoldItalic.ttf
/usr/share/fonts/liberation-fonts/LiberationMono-Italic.ttf
/usr/share/fonts/liberation-fonts/LiberationMono-Regular.ttf
 
Old 02-01-2011, 11:04 AM   #2
darkduck
Member
 
Registered: Jan 2011
Location: Cyprus
Distribution: Kubuntu, OpenSuSE
Posts: 502

Rep: Reputation: 26
in KDE you can look at ~/.fonts
 
Old 02-01-2011, 11:40 AM   #3
TruongAn
Member
 
Registered: Dec 2004
Location: Vietnam (Việt Nam)
Distribution: Gentoo (desktop), Arch linux (laptop)
Posts: 728

Original Poster
Rep: Reputation: 33
Quote:
Originally Posted by darkduck View Post
in KDE you can look at ~/.fonts
~/.fonts contains only fonts installed by me myself. I know these fonts, both their font name and file name. I want to search for fonts system-wide, all directory listed in /etc/fonts/font.conf ? That's quite a lot of directories and a lot of fonts, and that's where my trouble begin
 
Old 02-01-2011, 09:29 PM   #4
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,341
Blog Entries: 28

Rep: Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145
BEGIN EDIT

You must have been writing your post as I was writing mine.

Most Linux distros store fonts in /usr/share/fonts and its subdirectories.

To find them, you could try as root "locate *.ttf"; this would search for truetype fonts.

END EDIT

Just delete the *.ttf files from /usr/share/fonts (or from /usr/share/fonts/ttf or from /usr/share/fonts/truetype or whatever your distro calls it).

If you want to be careful, move them somewhere else where you can delete them later.

Then run fc-cache.

Last edited by frankbell; 02-01-2011 at 09:38 PM.
 
  


Reply



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
unable to find wanted xterm font kz26 Ubuntu 1 08-12-2007 08:36 AM
Can't find Arial Font in selection lists remargorp Linux - Newbie 1 04-12-2007 09:00 AM
XOSD doesn't find any font jazzesnee Linux - Software 1 01-17-2005 02:49 PM
How can I find/change default X font? cold Linux - General 1 06-21-2004 02:58 PM
Could not init font path element. Could not find default font "fixed" SidA Red Hat 0 06-19-2004 08:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:14 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