LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-28-2005, 11:36 PM   #1
synaptical
Senior Member
 
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020

Rep: Reputation: 48
Question X won't load fonts


Xorg.0.log:

Quote:
Could not init font path element /usr/X11R6/lib/X11/fonts/TTF/, removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/Speedo/, removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/Type1/, removing from list!
Could not init font path element /usr/local/share/fonts/truetype, removing from list!
as you can see, it won't read some of the default directories, or the one i made in /usr/local/share/fonts. the fonts are not available to my applications. does anyone have any idea of what might be going on? fresh slack 10 install, xorg 6.7. thx.
 
Old 03-01-2005, 01:32 AM   #2
stomfi
Member
 
Registered: Aug 2002
Location: Brisbane, Australia
Distribution: Ubuntu
Posts: 35

Rep: Reputation: 15
X can't find fonts

Your /tmp directory might be full

I don't know if this is the reason, but it could be, especially if you are like me and always filling up your drive with interesting downloads.

Otherwise have a look in /var/log/X* to see if the path is okay.
 
Old 03-01-2005, 07:16 AM   #3
anshaj
LQ Newbie
 
Registered: Dec 2004
Location: India
Distribution: fedora core
Posts: 1

Rep: Reputation: 0
Try removing your .xinitrc file from home directory and start x again. Did you install yahoo messenger rpm or other corrupted rpm after installation.
 
Old 03-01-2005, 07:49 AM   #4
pvs
Member
 
Registered: Jan 2005
Location: Lviv, Ukraine
Distribution: Something self-made
Posts: 69

Rep: Reputation: 16
check XF86Config. to use these fonts modules freetype, speedo and type1 should be loaded :
Section
...
Load "freetype"
Load "type1"
Load "speedo"
...
EndSection
 
Old 03-01-2005, 09:48 AM   #5
synaptical
Senior Member
 
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020

Original Poster
Rep: Reputation: 48
thanks for the suggestions, i checked all of them but no success. it's a fresh install, so the /tmp directory was okay, and i think it's emptied on every reboot anyway. no rpm installs. i took everything out of .xinitrc except exec fluxbox, then i deleted .xinitrc altogether, neither of those worked. and all those modules are loading in xorg.conf.

i noticed there was an entry in xorg.conf for /usr/share/fonts/ms that wasn't getting the "can't init, removed from list" error. i checked and there was no ms directory there, so i made one, copied in some ttf fonts, added /usr/share/fonts to /etc/fonts/local.conf, ran fc-cache -f, and restarted X, and then that was "removed from list," too.

wtf? all the directory and font permissions are exactly the same as for the directories that are getting loaded.
 
Old 03-01-2005, 10:21 AM   #6
mikshaw
LQ Addict
 
Registered: Dec 2003
Location: Maine, USA
Distribution: Slackware/SuSE/DSL
Posts: 1,320

Rep: Reputation: 45
What's the "-f" option for? I didn't think fc-cache used any options beyond directory names, so maybe it's failing to create a font index and therefore X is not seeing any fonts.

The only time i've seen that message is when there are no fonts in the specified directory.
 
Old 03-01-2005, 12:31 PM   #7
synaptical
Senior Member
 
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020

Original Poster
Rep: Reputation: 48
Quote:
Originally posted by mikshaw
What's the "-f" option for? I didn't think fc-cache used any options beyond directory names, so maybe it's failing to create a font index and therefore X is not seeing any fonts.

The only time i've seen that message is when there are no fonts in the specified directory.
-f means to force the scan.

Code:
  -f, --force          scan directories with apparently valid caches

i guess it's reading the fonts as invalid/corrupted for some reason. ? i redid mkfontdir and mkfontscale a few times, didn't work. i'll try it later with fresh bitstream fonts, see if that fixes it.
 
Old 03-01-2005, 03:07 PM   #8
psisquare
Member
 
Registered: Sep 2004
Location: Germany
Distribution: Gentoo
Posts: 164

Rep: Reputation: 31
Is there a file named fonts.dir in the directory? I think X needs this to successfully load a font directory.

It should contain the filenames of the fonts in that directory together with a description conataining lots of -dashes-. You can create this using mkfontdir (should be included in the X distribution).

Debian has also a tool called update-fonts-dir to facilitate this (and a central font registry called defoma that I still don't grok)
 
Old 03-02-2005, 10:40 AM   #9
synaptical
Senior Member
 
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020

Original Poster
Rep: Reputation: 48
yes, i redid the mkfontdir and mkfontscale a number of times without success. getting new fonts also didn't help.

anyone? it's really sucky not being able to add new fonts. (edit: fixed network problem)

Last edited by synaptical; 03-02-2005 at 12:20 PM.
 
Old 03-05-2005, 09:40 AM   #10
synaptical
Senior Member
 
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020

Original Poster
Rep: Reputation: 48
one last bump.
 
Old 12-20-2005, 02:07 AM   #11
jesage
LQ Newbie
 
Registered: Dec 2005
Posts: 1

Rep: Reputation: 0
check your fonts.dir file ,the content is right?

check your fonts.dir file ,the content is right?
 
  


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
Fonts question: how to get a full list of fonts in Abiword vharishankar Linux - Software 1 03-17-2005 11:11 AM
fonts.scale/fonts.dir: Naming convention kaon Linux - General 0 08-09-2004 05:02 AM
DrakFont doesn't load fonts Jiawen Mandriva 6 09-14-2003 08:22 AM
how to load Gujarati fonts in linux rinku_shivnani Linux - Software 3 07-29-2003 03:18 PM
Any way to convert ttf fonts to linux console fonts? Glockage Linux - Software 7 12-30-2002 06:41 AM

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

All times are GMT -5. The time now is 11:59 PM.

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