LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Fontconfig error (http://www.linuxquestions.org/questions/slackware-14/fontconfig-error-470055/)

umaru 08-02-2006 07:48 AM

Fontconfig error
 
hello

I'm using Slackware/Freerock current and after upgrade Xorg and installed the new packages fontconfig and freetype, gaim openoffice ekiga rhythmbox and others stop working with the following error msg:

Fontconfig error: Cannot load default config file
No fonts found; this probably means that the fontconfig
library is not correctly configured. You may need to
edit the fonts.conf configuration file. More information
about fontconfig can be found in the fontconfig(3) manual
page and on fontconfig.org

I look at fontconfig.org and found nothing. I google the web and couldn't find nothing similar also.

please, can anyone help me.

thanks in advance

umaru

kodon 08-03-2006 01:07 AM

did you do the upgrade in X?

Daga 08-03-2006 01:25 AM

I won't pretend to have seen this error before, but you may try running fc-cache to update the font list:

Code:

/usr/bin/fc-cache -f

umaru 08-03-2006 07:53 AM

I went to init 3 and made the upgrade.

thank You for the quick responses.

I figure out that there was no fonts directory under /usr/share so I get things working by making a symlink in /usr/share to /usr/X11R6/lib/X11/fonts. /usr/share/fonts -> /usr/share/lib/X11/fonts

I don't know if this is a general issue or if it is due to my setup. I did not install any of the windows manager shipped with slackware. just installed freerock gnome and made regular updates to go current.

regards

Franklin 08-03-2006 11:26 AM

Quote:

Originally Posted by umaru
hello

I'm using Slackware/Freerock current and after upgrade Xorg and installed the new packages fontconfig and freetype, gaim openoffice ekiga rhythmbox and others stop working with the following error msg:

Fontconfig error: Cannot load default config file

<snip>

please, can anyone help me.

thanks in advance

umaru

Did you see this in the changelog?
Code:

Wed Jul 26 01:55:38 CDT 2006

x/fontconfig-2.2.3-i486-1.tgz: Split fontconfig into a separate package.
      Look, we're modularizing for ease of maintainance! :-)
x/freetype-2.1.9-i486-1.tgz: Split freetype into a separate package.
      Patched CVE-2006-1861 linux 2.6.x setuid() related bugs.
      (* Security fix *)
x/x11-6.9.0-i486-5.tgz: Rebuilt. Removed fontconfig/freetype files.
      Patched some more possible linux 2.6.x setuid() related bugs:
      http://lists.freedesktop.org/archives/xorg-announce/2006-June/000100.html
      (* Security fix *)
x/x11-devel-6.9.0-i486-5.tgz: Rebuilt. Removed fontconfig/freetype files.
      Patched with setuid() usage fixes as described above. Again, this issue
      is only vulnerable on certain 2.6 kernels.
      (* Security fix *)
x/x11-docs-6.9.0-noarch-5.tgz: Rebuilt. Removed fontconfig/freetype files.

Not sure how you upgraded, but this may be your problem if you did not ensure installation of fontconfig with the upgrade of X11.

http://www.slackware.org/changelog/current.php?cpu=i386

HTH

umaru 08-03-2006 02:05 PM

Yes, I saw the changelog.

I used gslapt to just download the packages and then went to init 3 to upgrade xorg.

- downloaded all packages in x directory including fontconfig and freetype.

- upgraded with upgradepkg --install-new --reinstall *.tgz

Is this the right way?

many thanks and regards.

Franklin 08-03-2006 07:44 PM

Quote:

I figure out that there was no fonts directory under /usr/share so I get things working by making a symlink in /usr/share to /usr/X11R6/lib/X11/fonts. /usr/share/fonts -> /usr/share/lib/X11/fonts

I don't know if this is a general issue or if it is due to my setup. I did not install any of the windows manager shipped with slackware. just installed freerock gnome and made regular updates to go current.
Hi again.

I read through your posts and get the impression things are running OK since creating the symlink described above.

My slackware box does not have a fonts directory in /usr/share either. Then again, my system is not looking for fonts there so this is not an issue for me. Take a look at your /etc/X11/xorg.conf file and look for a section near the beginning that looks like this:
Code:

    FontPath        "/usr/X11R6/lib/X11/fonts/local"
    FontPath        "/usr/X11R6/lib/X11/fonts/misc"
    FontPath        "/usr/X11R6/lib/X11/fonts/TTF"
    FontPath        "/usr/X11R6/lib/X11/fonts/100dpi:unscaled"
    FontPath        "/usr/X11R6/lib/X11/fonts/75dpi:unscaled"
    FontPath        "/usr/X11R6/lib/X11/fonts/Type1"
    FontPath        "/usr/X11R6/lib/X11/fonts/CID"
    FontPath        "/usr/X11R6/lib/X11/fonts/Speedo"
    FontPath        "/usr/X11R6/lib/X11/fonts/cyrillic"
    FontPath        "/usr/local/share/fonts"
    FontPath        "/usr/X11R6/lib/X11/fonts"

This tells X where to look for fonts. Mine does not point to /usr/share/fonts but your's may. Maybe due to FRG install? I don't use freerock any longer so I don't know. I very recently installed -current on a new pc so what you see is "out of the box" -current so to speak. The exception being the font directory in /usr/local/share which contains the fonts I added after install.

As for your upgrade method, it appears sound with respect to the packages in the x directory. You used upgradepkg --install-new so any new/added packages would be installed as well. My only suggestion would be to upgrade everything and not to be selective, as it appears you were. Pat might have rebuilt other packages so that they would work with his other changes. Keeping the older versions of some programs might cause problems similar to what you describe.

Freerock is based on slackware 10.2 and all the problems you describe seem to be associated with freerock packages or freerock versions of slackware 10.2 packages. It's very likely that due to the significant change to fontconfig/X11 the freerock packages broke. When slack 11 is released, freerock will update their install. As it stands now, anything compiled for 10.2 is going to have problems on a -current box.

Hope this helps.

masonm 08-03-2006 08:48 PM

I ran into the same thing. Just download and install the fontconfig package.

umaru 08-04-2006 10:49 AM

hello
first of all, many thanks for all replies.

Quote:

I read through your posts and get the impression things are running OK since creating the symlink described above.
Yes, things got running OK since I created de symlink.

my xorg.conf files section:
Code:

Section "Files"
        RgbPath      "/usr/X11R6/lib/X11/rgb"
        FontPath    "/usr/X11R6/lib/X11/fonts/misc/"
        FontPath    "/usr/X11R6/lib/X11/fonts/TTF/"
        FontPath    "/usr/X11R6/lib/X11/fonts/Type1/"
#      FontPath    "/usr/X11R6/lib/X11/fonts/CID/"
        FontPath    "/usr/X11R6/lib/X11/fonts/75dpi/"
        FontPath    "/usr/X11R6/lib/X11/fonts/100dpi/"
        FontPath    "/usr/X11R6/lib/X11/fonts/local/"
        FontPath    "/usr/X11R6/lib/X11/fonts/Speedo/"
        FontPath    "/usr/X11R6/lib/X11/fonts/cyrillic/"
EndSection

the problem seems not related to X.

I think You are right Franklin and it may be a freerock related issue.

as the error msg reports to fontconfig, here is the fonts directory section in my /etc/fonts.conf (witch is the one installed with fontconfig-2.2.3-i486-1.tgz):
Code:

<dir>/usr/share/fonts</dir>
<dir>/usr/X11R6/lib/X11/fonts/TTF</dir> <dir>/usr/X11R6/lib/X11/fonts/Type1</dir>
<dir>~/.fonts</dir>

it seems like some frg programs are getting trouble with fontconfig after the upgrade.

as things are working good now, I'l be fine until the major releases of slackware and frg get out.

and, if I get the cause of that behavior I'l be posting it here.

many thanks for Your help. best regards


All times are GMT -5. The time now is 10:44 AM.