LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 10-26-2004, 08:30 AM   #1
BroX
Member
 
Registered: Oct 2003
Location: Sweden
Distribution: Slackware64-current, SlackwareARM-15.0
Posts: 833

Rep: Reputation: 90
Fonts ok as root, but bad as user


Hi all,

When using either Gnome or KDE in Debian unstable, the fonts look horrible! Been reading all the tips about font-deuglification without result. Then, when I accidently logged in as root, I found out that all fonts looked perfect!

So it's probably to do with permissions somewhere for something?

Please note: all fonts are there, as checked with xfontsel. It's just that they're not smooth (not at all). The font configuration is set at LCD (laptop) with full sub-pixel smoothing (or something like that; I booted Slackware now so I can't check it)

Here is /etc/X11/XFree86config-4:
Code:
Section "Files"
        FontPath        "unix/:7100"                    # local font server
        # if the local font server has problems, we can fall back on these
        FontPath        "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
        FontPath        "/usr/lib/X11/fonts/misc"
        #FontPath       "/usr/lib/X11/fonts/cyrillic"
        FontPath        "/usr/lib/X11/fonts/100dpi/:unscaled"
        FontPath        "/usr/lib/X11/fonts/75dpi/:unscaled"
        #FontPath       "/usr/lib/X11/fonts/CID"
        #FontPath       "/usr/lib/X11/fonts/Speedo"
        FontPath        "/usr/lib/X11/fonts/100dpi"
        FontPath        "/usr/lib/X11/fonts/75dpi"
        FontPath        "/usr/lib/X11/fonts/Type1"
EndSection
Here is font-stuff in /var/log/Xfree86.0.log:
Code:
Warning: font renderer for ".pcf" already registered at priority 0
Warning: font renderer for ".pcf.Z" already registered at priority 0
Warning: font renderer for ".pcf.gz" already registered at priority 0
Warning: font renderer for ".snf" already registered at priority 0
Warning: font renderer for ".snf.Z" already registered at priority 0
Warning: font renderer for ".snf.gz" already registered at priority 0
Warning: font renderer for ".bdf" already registered at priority 0
Warning: font renderer for ".bdf.Z" already registered at priority 0
Warning: font renderer for ".bdf.gz" already registered at priority 0
Warning: font renderer for ".pmf" already registered at priority 0
Could not init font path element unix/:7100, removing from list!
Could it have anything to do with the unix:/7100 font server not working well?

Any suggestions more than welcome!!

Cheers, Leon.
 
Old 10-26-2004, 02:10 PM   #2
Space_Balls
Member
 
Registered: Aug 2003
Location: El Paso, Tx
Distribution: Debian Sid, SuSe 9.1 Pro
Posts: 33

Rep: Reputation: 15
I have the same error messages in my XFree86 log file.
I also notices that fonts appeared different after reboots without changing any settings...very weird
 
Old 10-26-2004, 06:34 PM   #3
haimeltjnfg
Member
 
Registered: May 2004
Distribution: debian
Posts: 235

Rep: Reputation: 30
#apt-get install xfs-xtt

and change
"unix:/7100" to "unix:/7110"

see if that helps
 
Old 10-27-2004, 02:23 AM   #4
BroX
Member
 
Registered: Oct 2003
Location: Sweden
Distribution: Slackware64-current, SlackwareARM-15.0
Posts: 833

Original Poster
Rep: Reputation: 90
Quote:
Originally posted by haimeltjnfg
#apt-get install xfs-xtt
and change
"unix:/7100" to "unix:/7110"
see if that helps
No change in font quality, and I get the same warnings in /var/log/Xfree86.0.log (except now it's unix:/7110)

Any other thoughts?
 
Old 10-27-2004, 06:09 AM   #5
michapma
Member
 
Registered: Oct 2003
Location: Zürich
Distribution: Debian
Posts: 537

Rep: Reputation: 39
If you look at the last post on the first page of this thread (a sticky on this forum):
http://www.linuxquestions.org/questi...hreadid=224547
you'll notice some differences to what is listed in your config file. For one thing, #FontPath "unix/:7100" is commented out, and there are some statements about truetype that are not present in your document. I don't know why they're not there. I also notice that you've commented out CID and Speedo; I don't know what these do but maybe that has an impact. Of course this assumes that you installed the x-window-system.

Follow it up by looking at the 13th post on the second page of the thread. You will also find a few hints about how to get a faster Gnome. Hope this helps, I don't know exactly what's wrong, just wanted to point you to some of the previously suggested tips.
 
Old 10-27-2004, 06:12 AM   #6
michapma
Member
 
Registered: Oct 2003
Location: Zürich
Distribution: Debian
Posts: 537

Rep: Reputation: 39
Something else just occured to me. Since the fonts look fine as root but not as a normal user, then you should compare the configuration files between root and the normal user. This could very well have something to do with the vast array of Gnome configuration files. The font configuration in /etc/X11/XF86Config-4 are for everyone who uses the X server, so there must be something adding or overriding declarations in the respective user configurations.

Plus, you shouldn't be starting up the X server as root, it's supposed to be a security risk.
 
Old 10-27-2004, 09:41 AM   #7
BroX
Member
 
Registered: Oct 2003
Location: Sweden
Distribution: Slackware64-current, SlackwareARM-15.0
Posts: 833

Original Poster
Rep: Reputation: 90
Quote:
Originally posted by michapma
Plus, you shouldn't be starting up the X server as root, it's supposed to be a security risk.
I know, it was after an 'accidental' login as root

About the XF86config: I can of course comment the 'unix/:7100' and prevent the errors, but I guess if it's working it must do something good. Then again, as commented in the config file, if it doesn't the system falls back on the font file locations given next. CID and Speedo are commented out because they're not installed. And true, TrueType isn't listed, but as the root login looked ok, they can't be necessary.

Your other suggestion, to check the Gnome config files, won't tell me what's wrong since the same occurs in KDE.

I guess it has something to do with permissions.

In short: still stuck with this...
 
Old 10-27-2004, 05:15 PM   #8
haimeltjnfg
Member
 
Registered: May 2004
Distribution: debian
Posts: 235

Rep: Reputation: 30
did you install xfs-xtt?
 
Old 10-27-2004, 05:25 PM   #9
michapma
Member
 
Registered: Oct 2003
Location: Zürich
Distribution: Debian
Posts: 537

Rep: Reputation: 39
Hmm, maybe it's got nothing to do with Gnome and KDE config files and something in another config file. What else might make declarations affecting the fonts? .bashrc?
 
Old 10-28-2004, 02:40 AM   #10
BroX
Member
 
Registered: Oct 2003
Location: Sweden
Distribution: Slackware64-current, SlackwareARM-15.0
Posts: 833

Original Poster
Rep: Reputation: 90
Quote:
Originally posted by haimeltjnfg
did you install xfs-xtt?
Yes, and changed unix:/7100 to unix:/7110, without effect. Do I have to start xfs-xtt a service (rc.something) or will it run automatically once installed?

Thanks for all the input so far!
 
Old 10-28-2004, 04:57 PM   #11
haimeltjnfg
Member
 
Registered: May 2004
Distribution: debian
Posts: 235

Rep: Reputation: 30
it should run automatically,
but try it anyway:

#/etc/init.d/xfs-xtt start

i don't understand why you'd get an error if it is installed and running, unless you have a custom compiled kernel lacking unix socket network support.
 
Old 11-01-2004, 03:30 AM   #12
BroX
Member
 
Registered: Oct 2003
Location: Sweden
Distribution: Slackware64-current, SlackwareARM-15.0
Posts: 833

Original Poster
Rep: Reputation: 90
Quote:
Originally posted by haimeltjnfg
it should run automatically,
but try it anyway:

#/etc/init.d/xfs-xtt start

i don't understand why you'd get an error if it is installed and running, unless you have a custom compiled kernel lacking unix socket network support.
xfs-xtt does start correctly, but in /var/log/syslog I fond the following:
Code:
Nov  1 14:05:27 localhost xfs-xtt: Warning: font renderer for ".TTF" already registered at priority 10 
Nov  1 14:05:27 localhost xfs-xtt: Warning: font renderer for ".TTC" already registered at priority 10 
Nov  1 14:05:27 localhost xfs-xtt: ignoring font path element /var/lib/defoma/x-ttcidfont-conf.d/dirs/CID (unreadable) 
Nov  1 14:05:27 localhost xfs-xtt: ignoring font path element /usr/lib/X11/fonts/cyrillic/:unscaled (unreadable)
Does that tell us anything?

Also found the following log, which seems ok to me?
/var/log/fontconfig.log
Code:
leon-fyg:/home/leon# cat /var/log/fontconfig.log 
fc-cache: "/usr/share/fonts": caching, 0 fonts, 2 dirs
fc-cache: "/usr/share/fonts/type1": caching, 0 fonts, 1 dirs
fc-cache: "/usr/share/fonts/type1/gsfonts": caching, 35 fonts, 0 dirs
fc-cache: "/usr/share/fonts/truetype": caching, 0 fonts, 3 dirs
fc-cache: "/usr/share/fonts/truetype/freefont": caching, 12 fonts, 0 dirs
fc-cache: "/usr/share/fonts/truetype/ttf-bitstream-vera": caching, 10 fonts, 0 dirs
fc-cache: "/usr/share/fonts/truetype/openoffice": caching, 1 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/Type1": caching, 9 fonts, 0 dirs
fc-cache: "/usr/local/share/fonts": caching, 0 fonts, 0 dirs
fc-cache: "/root/.fonts": skipping, no such directory
fc-cache: "/var/lib/defoma/fontconfig.d": caching, 0 fonts, 7 dirs
fc-cache: "/var/lib/defoma/fontconfig.d/B": caching, 10 fonts, 0 dirs
fc-cache: "/var/lib/defoma/fontconfig.d/C": caching, 4 fonts, 0 dirs
fc-cache: "/var/lib/defoma/fontconfig.d/D": caching, 1 fonts, 0 dirs
fc-cache: "/var/lib/defoma/fontconfig.d/F": caching, 12 fonts, 0 dirs
fc-cache: "/var/lib/defoma/fontconfig.d/N": caching, 16 fonts, 0 dirs
fc-cache: "/var/lib/defoma/fontconfig.d/S": caching, 1 fonts, 0 dirs
fc-cache: "/var/lib/defoma/fontconfig.d/U": caching, 13 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/100dpi": caching, 397 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/75dpi": caching, 397 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/misc": caching, 74 fonts, 0 dirs
fc-cache: succeeded
Ayy suggestions?

Cheers, Leon.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Firefox fonts look awful for user, great for root. Raoul_Duke_M Slackware 8 10-01-2004 05:55 PM
First window bad fonts igor.R Linux - General 1 03-28-2004 12:33 PM
9.2 strange fonts for user root daffyduke Mandriva 2 02-02-2004 06:37 PM
Bad Displayed Fonts Obscure Linux - Newbie 3 11-17-2003 02:26 PM
truetype fonts fail to display in any user but root... Thikasabrik Linux - Software 2 09-05-2003 11:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

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