Version: 3.1.93 (CVS >= 20031111) (using KDE 3.1.93 (CVS >= 20031111), compiled sources) Compiler: gcc version 2.96 20000731 (Red Hat Linux 7.2 2.96-112.7.2) OS: Linux (i686) release 2.4.22 As explained in #69334, I used 3.2 from 28.Nov with my system which used before KDE-3.1.4. I started kcontrol and opened font-installer module. After restarting KDE I found all my fonts looked different. Now I saw why: [/etc/X11](:)# diff XF86Config-4 XF86Config-4.bak 23a24 > FontPath "unix/:7100" 25,44d25 < FontPath "/usr/local/share/fonts" < FontPath "/usr/share/fonts" < FontPath "/usr/X11R6/lib/X11/fonts" < FontPath "/usr/X11R6/lib/X11/fonts/Type1" < FontPath "/usr/share/fonts/default/TrueType" < FontPath "/usr/share/fonts/default/Type1" < FontPath "/usr/share/fonts/ja/TrueType" < FontPath "/usr/share/fonts/NT" < FontPath "/usr/X11R6/lib/X11/fonts/TTF" < FontPath "/usr/X11R6/lib/X11/fonts/misc" < FontPath "/usr/X11R6/lib/X11/fonts/100dpi" < FontPath "/usr/X11R6/lib/X11/fonts/Speedo" < FontPath "/usr/X11R6/lib/X11/fonts/CID" < FontPath "/usr/X11R6/lib/X11/fonts/local" < FontPath "/usr/X11R6/lib/X11/fonts/latin2/Type1" < FontPath "/usr/share/fonts/default" < FontPath "/usr/share/fonts/ja" < FontPath "/usr/X11R6/lib/X11/fonts/75dpi" < FontPath "/usr/X11R6/lib/X11/fonts/latin2" < FontPath "/usr/X11R6/lib/X11/fonts/PEX" You see, for whatever reason it removed my xfs entry.
Subject: Re: font installer removes xfs from XF86Config-4 file Hi, This is because the installer reads XF86Config to try and determine if a font-server is being used - by looking at the FontPath's, and searching for an entry starting "unix/:". This seems to be going wrong in your case. Can you try using the files in the attached tar.gz file? Just untar the contents into kdebase/kcontrol/kfontinst/lib - and rebuild all of kdebase/kcontrol/kfontinst I've re-written the check for "unix/:" -> and hopefully this should be more robust. After you compile, run "kcmshell kcmfontinst" from the command line - this should then output if it found the system X config file to be the font-server file. If this works, then please re-try running as root (or via Admin mode). You should see output such as: * USES XFS!!! -> Implies that it found unix/: in XF86Config * SYS XFS:<path> -> Will show the path to the font-server config that it is using. Currently only /etc/X11/fs/config and /usr/openwin/lib/X11/fonts/fontserver.cfg are search for - if you font server config file is in a differnt place please let me know - as this would be the problem. * USING X CONFIG:<path> ->Shows the file that will be used to read paths from, and write paths to. This should be the same as the "SYS XFS" above. Please let me know if the changes work, and I'll commit them. Craig. Created an attachment (id=3491) kfi.tar.gz
Subject: Re: font installer removes xfs from XF86Config-4 file On Monday 01 December 2003 12:18, you wrote: > > I've re-written the check for "unix/:" -> and hopefully this should be more > robust. > > After you compile, run "kcmshell kcmfontinst" from the command line - this > should then output if it found the system X config file to be the > font-server file. If this works, then please re-try running as root (or via > Admin mode). > > You should see output such as: > > * USES XFS!!! -> Implies that it found unix/: in XF86Config > * SYS XFS:<path> -> Will show the path to the font-server config > that it is using. Currently only > /etc/X11/fs/config and /usr/openwin/lib/X11/fonts/fontserver.cfg are search > for - if you font server config file is in a differnt place please let me > know - as this would be the problem. No, I have it in the std place /etc/X11/fs/config. I have there also a config.ok (which is an old one) - does this hurt? > * USING X CONFIG:<path> ->Shows the file that will be used to read > paths from, and write paths to. This should be the same as the "SYS XFS" > above. > OK, did so. Running as normal user gives (somewhere between a lot of other debugs): USES XFS!!! SYS XFS:"/etc/X11/fs/config" USING X CONFIG: "/etc/X11/fs/config" running as root does not! it only gives: kcmshell: [KCModuleInfo::KCModuleInfo (KSharedPtr<KService>)] /disc/kde3.2/share/applications/kde/kcmfontinst.desktop kcmshell: WARNING: KGenericFactory: instance requested but no instance name passed to the constructor! kdeui (KCModule): KCModule kfontinst QMetaObject::findSignal:CKFileFontView: Conflict with QListView::doubleClicked(QListViewItem*,const QPoint&,int) DCOPServer : slotSuicide() -> exit. ICE default IO error handler doing an exit(), pid = 22067, errno = 0 and the XF86Config-4 file was again changed. I attach my original xfs config file and my original XF86Config file, and also the new files. What else can I check ? FYI: I had originally a RedHat 7.2 distro, but did already a lot of rpm upgrades and compiles from source. I have XFree86-4.2.0 installed (I installed it downloaded from XFree86.org), freetype-2.1.5 installed recently compiled from source fontconfig seems not be installed (what rpm tells me), but to be honest, I have currently no idea how XFree86/freetype/fontconfig interact. I read somewhere something about fontconfig and /etc/fonts and this exists with a fonts.conf and a fonts.dtd in it. Can I give you more hints ? Created an attachment (id=3500) XF86Config-4 Created an attachment (id=3501) XF86Config-4.new Created an attachment (id=3502) config
Subject: Re: font installer removes xfs from XF86Config-4 file Hmm... I've just tried (as root) and it seems to work for me. Can you put /etc/X11/XF86Config-4 and /etc/X11/fs/config back to the state they should be in, and remove root's $KDEHOME/share/config/kfontinstrc And try again? Craig.
Subject: Re: font installer removes xfs from XF86Config-4 file > > Hmm... I've just tried (as root) and it seems to work for me. Can you put > /etc/X11/XF86Config-4 and /etc/X11/fs/config back to the state they should > be in, and remove root's $KDEHOME/share/config/kfontinstrc And try again? > > Craig. OK, did that. Now it works. Seems to have to do with the previous entry SysXfs=false in the kfontinstrc file ...
Subject: Re: font installer removes xfs from XF86Config-4 file > OK, did that. Now it works. > Seems to have to do with the previous entry > SysXfs=false > in the kfontinstrc file ... OK - so I'll commit the change to CVS, and close this report? Craig.
Subject: Re: font installer removes xfs from XF86Config-4 file On Tuesday 02 December 2003 17:21, Craig Drummond wrote: > > OK - so I'll commit the change to CVS, and close this report? > Yes. Go ahead. And thanks!
Fixed in CVS HEAD