Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Xorg problem with font path
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Havin_it
Veteran
Veteran


Joined: 17 Jul 2005
Posts: 1252
Location: Edinburgh, UK

PostPosted: Fri Dec 16, 2005 1:42 pm    Post subject: Xorg problem with font path Reply with quote

Hi,

This isn't a new problem, but I've run out of other bugs to worry about (for now), so I thought I'd try and get some info.

I noticed this output in Xorg.0.log:

Code:
(WW) `fonts.dir' not found (or not valid) in "/usr/local/share/fonts".
        Entry deleted from font path.
        (Run 'mkfontdir' on "/usr/local/share/fonts").


The dir in question has a lot of TTF fonts in it, and they are available in my apps after booting, so I'm just wondering how this error is generated? The dir doesn't have the metadata files (fonts.dir and so on) like the others under /user/share/fonts, and I even tried running 'mkfontdir /usr//local/share/fonts' but no such files were generated.

Should I be losing sleep over this? Is it just mis-reporting? Would it be better to just move the fonts into /usr/share/fonts/TTF and remove the old path from xorg.conf, or is this unwise for any reason?

Thanks in advance - please ask if you need any other logs/configs posted.
Back to top
View user's profile Send private message
leo
n00b
n00b


Joined: 25 Feb 2003
Posts: 70
Location: Milano - Italy

PostPosted: Fri Dec 16, 2005 3:56 pm    Post subject: Reply with quote

The fonts.dir must be present and is a list of the various fonts; I think that probably in my Gentoo, the mkfontdir is runned automatically, because the file is updated with the last fonts I added a few days ago.

However you can see TTF fonts in applications without updating this file.

Have you tried running 'mkfontdir' on "/usr/local/share/fonts" as suggested?
Back to top
View user's profile Send private message
Havin_it
Veteran
Veteran


Joined: 17 Jul 2005
Posts: 1252
Location: Edinburgh, UK

PostPosted: Sat Dec 17, 2005 12:24 am    Post subject: Reply with quote

Yes, that's what I mean. I issued the command

Code:
mkfontdir /usr/local/share/fonts


It returned without output, but no files were created in the dir. I've also had a look at man mkfontdir, but it only talks about PCF, BDF and SNF filetypes (not a good start).

It also seems you need to specify a directory with encodings, so I looked at the encodings.dir and used the paths in there, like so:

Code:
mkfontdir -e /usr/share/fonts/encodings /usr/local/share/fonts
mkfontdir -e /usr/share/fonts/encodings/large /usr/local/share/fonts


This generated the files encodings.dir, fonts.cache-1 and fonts.dir but the fonts.cache-1 only contains a handful of the fonts in the directory, and fonts.dir only contains the character "0".

According to the manpage, I should already have a fonts.scale file to be read by mkfontsdir - but how do I generate this?
Back to top
View user's profile Send private message
Havin_it
Veteran
Veteran


Joined: 17 Jul 2005
Posts: 1252
Location: Edinburgh, UK

PostPosted: Sat Dec 17, 2005 1:37 am    Post subject: Reply with quote

Okay, things seem to be sorted now. I did some more trawling of the forum for 'mkfontdir' and found a post that also mentioned another command, 'mkfontscale'. In the manpage for that command I found reference to yet another, 'ttmkfdir' so I used this, as follows:

Code:
cd /usr/local/share/fonts
ttmkfdir  [this makes the fonts.scale file]
mkfontdir -e /usr/share/fonts/encodings -e /usr/share/fonts/encodings/large /usr/local/share/fonts
[note I invoke both encoding dirs here, using one at a time the second appears to overwrite the first]


Now the X log is error-free. Still not sure why, previously, the fonts were still being loaded in spite of this - is there a secondary system at work?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum