Re: fontconfig configuration file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 22 Jul 2005, Thomas De Schampheleire wrote:

My main problem is the error "Fontconfig error: Cannot load default config file" I guess.

Where is fontconfig looking for the configuration? How can I resolve the problem?

Use strace or ktrace to track this down.

For example, on NetBSD I ran:

  ktrace fc-list

and then ran kdump and saw:

  6104 fc-list  NAMI  "/usr/pkg/etc/fontconfig/fonts.conf"
  6104 fc-list  RET   open 3
...
  6104 fc-list  NAMI  "/home/reed/.fonts.conf"
  6104 fc-list  RET   access -1 errno 2 No such file or directory
  6104 fc-list  CALL  access(0x804c280,4)
  6104 fc-list  NAMI  "/usr/pkg/etc/fontconfig/local.conf"
  6104 fc-list  RET   access -1 errno 2 No such file or directory
...

So I can clearly see what configurations it looks at (or attempts) and in what order ...

"strace fc-list" on another outputted:

access("/etc/fontconfig/fonts.conf", R_OK) = 0
open("/etc/fontconfig/fonts.conf", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=11518, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0
xb7feb000
read(3, "<?xml version=\"1.0\"?>\n<!DOCTYPE "..., 8192) = 8192
access("/home/reed/.fonts.conf", R_OK)  = 0
open("/home/reed/.fonts.conf", O_RDONLY) = 4
...
open("/etc/fontconfig/local.conf", O_RDONLY) = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=350, ...}) = 0
...


 Jeremy C. Reed

 	  	 	 BSD News, BSD tutorials, BSD links
	  	 	 http://www.bsdnewsletter.com/
_______________________________________________
fontconfig mailing list
fontconfig@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/fontconfig

[Index of Archives]     [Fedora Fonts]     [Fedora Users]     [Fedora Cloud]     [Kernel]     [Fedora Packaging]     [Fedora Desktop]     [PAM]     [Gimp Graphics Editor]     [Yosemite News]

  Powered by Linux