View previous topic :: View next topic |
Author |
Message |
equaeghe l33t
Joined: 22 Feb 2005 Posts: 644
|
Posted: Thu Apr 09, 2009 9:01 pm Post subject: xorg font warnings |
|
|
After successfully transitioning to xorg-server 1.5.3, the only thing in my Xorg log not ok is the following:
Code: |
(WW) The directory "/usr/share/fonts/TTF/" does not exist.
Entry deleted from font path.
(WW) The directory "/usr/share/fonts/OTF" does not exist.
Entry deleted from font path.
(WW) The directory "/usr/share/fonts/Type1/" does not exist.
Entry deleted from font path.
(==) FontPath set to:
/usr/share/fonts/misc/,
/usr/share/fonts/100dpi/,
/usr/share/fonts/75dpi/,
built-ins
|
I don't experience any problem, but would like to get a totally clean setup now that I've started...
The font directories I have are
Code: |
# ls /usr/share/fonts/
100dpi arphicfonts cyrillic dejavu fonts.cache-1 misc ttf-bitstream-vera
75dpi corefonts default encodings fonts.dir terminus util
|
Anything I can do to get rid of the warnings and get the other fonts detected (if possible, without adding them explicitly to my now almost nonexistent xorg.conf)?
TIA,
Erik |
|
Back to top |
|
|
Gankfest l33t
Joined: 01 Aug 2007 Posts: 946 Location: Miami Beach, FL
|
Posted: Thu Apr 09, 2009 9:21 pm Post subject: |
|
|
Remerging x11 fonts work, which I think is this one forgot though media-fonts/corefonts. You can always read this guide:
http://en.gentoo-wiki.com/wiki/X.Org/Fonts _________________ Gankfest™ (>")> ~*
Everyone has to start somewhere, it depends on where you end up that counts! (>")> |
|
Back to top |
|
|
pappy_mcfae Watchman
Joined: 27 Dec 2007 Posts: 5999 Location: Pomona, California.
|
Posted: Thu Apr 09, 2009 9:29 pm Post subject: |
|
|
emerge -av xorg-x11
Blessed be!
Pappy _________________ This space left intentionally blank, except for these ASCII symbols. |
|
Back to top |
|
|
BitJam Advocate
Joined: 12 Aug 2003 Posts: 2508 Location: Silver City, NM
|
Posted: Fri Apr 10, 2009 6:32 am Post subject: |
|
|
I get those some font warnings. Re-emerging xorg-x11 didn't make any difference. |
|
Back to top |
|
|
pdw_hu Apprentice
Joined: 02 Jun 2008 Posts: 200 Location: Budapest, Hungary
|
Posted: Fri Apr 10, 2009 9:19 am Post subject: |
|
|
If it really bothers you, just create those missing directories. |
|
Back to top |
|
|
BitJam Advocate
Joined: 12 Aug 2003 Posts: 2508 Location: Silver City, NM
|
Posted: Sat Apr 11, 2009 5:51 pm Post subject: |
|
|
pdw_hu wrote: | If it really bothers you, just create those missing directories. |
Thanks. I also had to run mkfontdir $DIR in order to get rid of a new error about missing fonts.dir in the new directories. |
|
Back to top |
|
|
Rüpel Guru
Joined: 06 Nov 2002 Posts: 316 Location: Berlin/Germany
|
Posted: Mon Apr 13, 2009 10:07 pm Post subject: |
|
|
pdw_hu wrote: | If it really bothers you, just create those missing directories. |
Nope! I want to know where that comes from. I'm getting the warning about a missing OTF directory too. I've grep'ed in /etc/X11 and ~ and /usr/share/fonts and there is no OTF. Is that compiled in?
Call me a nitpicker, but that's why I'm using Gentoo in the first place: I want to know what's going on... _________________ :wq |
|
Back to top |
|
|
pappy_mcfae Watchman
Joined: 27 Dec 2007 Posts: 5999 Location: Pomona, California.
|
Posted: Tue Apr 14, 2009 4:58 am Post subject: |
|
|
Either you don't have those fonts installed, or you have an incorrect path to them. You can emerge -s fonts, and pick which ones you'd like to have. As long as they're TTF or OTF fonts, they should install themselves to the /usr/share/fonts/*TF directories properly, giving you back your font functionality. Also, if you have a Windoze machine with lots of fonts, you can copy those to that directory and have all kinds of fonts, like yours truly.
Blessed be!
Pappy _________________ This space left intentionally blank, except for these ASCII symbols. |
|
Back to top |
|
|
Rüpel Guru
Joined: 06 Nov 2002 Posts: 316 Location: Berlin/Germany
|
Posted: Tue Apr 14, 2009 8:19 pm Post subject: |
|
|
my problem is: why does X want to include /usr/share/fonts/OTF in the font path anyway? I haven't told X to do that.
Code: |
# grep -r OTF /etc/X11/ | wc -l
0
|
in particular there is no
Code: |
FontPath "/usr/share/fonts/OTF"
|
line in my /etc/X11/xorg.conf
it's about the beauty of having a ^([EW]-free Xorg.0.log. _________________ :wq |
|
Back to top |
|
|
BitJam Advocate
Joined: 12 Aug 2003 Posts: 2508 Location: Silver City, NM
|
Posted: Tue Apr 14, 2009 8:35 pm Post subject: |
|
|
I think it is a compiled-in default. The thinking was that making sure there were at least some fonts for one set of people took priority over some warning messages showing up in the log file of another set of people.
I'm not sure how deep it goes. It is possible that if you build xorg-server (I'm assuming) manually using the ebuild program, you might be able to poke around and find some ./configure options that would change the default. If you do find a config option that works and you want to make the change permanent then you will have to copy the ebuild over to your own overlay and modify it there so it doesn't get overwritten the next time you sync. |
|
Back to top |
|
|
Rüpel Guru
Joined: 06 Nov 2002 Posts: 316 Location: Berlin/Germany
|
Posted: Tue Apr 14, 2009 9:29 pm Post subject: |
|
|
yeah, well, I think I've found the reason: (from the xorg-server 1.5.3 configure script)
Code: |
DEFAULT_FONT_PATH="${FONTDIR}/misc/,${FONTDIR}/TTF/,${FONTDIR}/OTF,${FONTDIR}/Type1/,${FONTDIR}/100dpi/,${FONTDIR}/75dpi/"
case $host_os in
darwin*) DEFAULT_FONT_PATH="${DEFAULT_FONT_PATH},/Library/Fonts,/System/Library/Fonts" ;;
esac
# Check whether --with-default-font-path was given.
if test "${with_default_font_path+set}" = set; then
withval=$with_default_font_path; FONTPATH="$withval"
else
FONTPATH="${DEFAULT_FONT_PATH}"
fi
|
the ebuild does not set the --with-default-font-path switch at all. that results in the default font path (set in X.orgs original configure.ac) getting always used (the "else" branch). Shouldn't Gentoo as a distribution go ahead and make sure that those directories exist, when the xorg-server ebuild is emerged? Or the other way around: what about setting --with-default-font-path to an empty string within the ebuild? but to be honest, I have no idea what other consequences that may have ...
at least I'm relieved, because now I know, where that warning comes from.
still - I consider this a bug within the ebuild _________________ :wq |
|
Back to top |
|
|
pappy_mcfae Watchman
Joined: 27 Dec 2007 Posts: 5999 Location: Pomona, California.
|
Posted: Wed Apr 15, 2009 1:30 am Post subject: |
|
|
If you consider it a bug, make a report. If others have the issue, it helps everyone to write bug reports.
Blessed be!
Pappy _________________ This space left intentionally blank, except for these ASCII symbols. |
|
Back to top |
|
|
Rüpel Guru
Joined: 06 Nov 2002 Posts: 316 Location: Berlin/Germany
|
|
Back to top |
|
|
pappy_mcfae Watchman
Joined: 27 Dec 2007 Posts: 5999 Location: Pomona, California.
|
Posted: Thu Apr 16, 2009 9:04 pm Post subject: |
|
|
Cool. Now let's see where it goes.
Blessed be!
Pappy _________________ This space left intentionally blank, except for these ASCII symbols. |
|
Back to top |
|
|
jackhole n00b
Joined: 23 Feb 2009 Posts: 55
|
Posted: Fri Apr 17, 2009 2:34 am Post subject: |
|
|
Good stuff. I remember the first time I troubleshooted X these warnings in Xorg.0.log worried me greatly.
I have to imagine that somewhere in xorg-server's long depgraph there's some font packages being pulled in that the default font path could be set to. |
|
Back to top |
|
|
cwr Veteran
Joined: 17 Dec 2005 Posts: 1969
|
Posted: Sat Apr 18, 2009 10:58 am Post subject: |
|
|
One nice thing about Gentoo is you have the source; when I get to that level
of difficulty, I tend to unpack the source tar file in a scratch directory, and
rummage through it for the appropriate strings. Not a bad way to find out
what's going on. though I must admit I found X fonts a pig to deal with, and
still don't understand exactly how they are set up.
Will |
|
Back to top |
|
|
bloedie Tux's lil' helper
Joined: 03 Jul 2006 Posts: 88 Location: Germany
|
Posted: Sat Apr 18, 2009 11:20 am Post subject: |
|
|
Hi.
I had the same warnings. For me worked a
Code: | mkdir /usr/share/fonts/OTF
mkfontdir /usr/share/fonts/OTF |
an the warnings are gone.
Cu.
Bloedie |
|
Back to top |
|
|
|