Hello, maybe I'm wrong, I'm not an expert with fonts, but when I try to use fc-cache it's looking for /usr/share/fonts instead of /usr/lib/X11/fonts $ sudo fc-cache -v /usr/share/fonts: skipping, no such directory /home/sepen/.fonts: skipping, no such directory /var/cache/fontconfig: cleaning cache directory /home/sepen/.fontconfig: not cleaning non-existent cache directory fc-cache: succeeded $ sudo fc-cache -v /usr/lib/X11/fonts /usr/lib/X11/fonts: caching, new cache contents: 0 fonts, 7 dirs /usr/lib/X11/fonts/100dpi: caching, new cache contents: 304 fonts, 0 dirs /usr/lib/X11/fonts/75dpi: caching, new cache contents: 304 fonts, 0 dirs /usr/lib/X11/fonts/TTF: caching, new cache contents: 12 fonts, 0 dirs /usr/lib/X11/fonts/Type1: caching, new cache contents: 13 fonts, 0 dirs /usr/lib/X11/fonts/cyrillic: caching, new cache contents: 0 fonts, 0 dirs /usr/lib/X11/fonts/misc: caching, new cache contents: 47 fonts, 0 dirs /usr/lib/X11/fonts/util: caching, new cache contents: 0 fonts, 0 dirs /var/cache/fontconfig: cleaning cache directory /home/sepen/.fontconfig: not cleaning non-existent cache directory fc-cache: succeeded indeed $ pkginfo -o /usr/share/fonts pkginfo: no owner(s) found (prt-get fsearch returns an empty result too) I'm sure that I have the box uptodate: $ prt-get diff No differences found $ sudo rejmerge Nothing to merge $ ls -la /var/lib/pkg/rejected/ total 0 drwxr-xr-x 2 root root 48 Apr 30 23:13 . drwxr-xr-x 3 root root 160 May 1 16:08 .. imho it's due to the default line found in fonts.conf: $ grep '/usr/share/fonts' /etc/fonts/fonts.conf <dir>/usr/share/fonts</dir> in this case, I think could be useful a little modification on rc.fix: --- rc.fix.orig 2008-05-01 16:28:00.416021441 +0200 +++ rc.fix 2008-05-01 16:28:37.316020743 +0200 @@ -17,7 +17,7 @@ if [ -d /usr/lib/X11/fonts ]; then fi if [ -d /var/cache/fontconfig ] && [ -z "`/bin/ls /var/cache/fontconfig/`" ]; then - fc-cache &> /dev/null + fc-cache /usr/lib/X11/fonts &> /dev/null fi or would be better to change it on the config file /etc/fonts/fonts.conf is that right? Thanks in advance, Jose V Beneyto (aka. sepen)
Jose V Beneyto wrote:
Hello,
maybe I'm wrong, I'm not an expert with fonts, but when I try to use fc-cache it's looking for /usr/share/fonts instead of /usr/lib/X11/fonts
...
imho it's due to the default line found in fonts.conf: $ grep '/usr/share/fonts' /etc/fonts/fonts.conf <dir>/usr/share/fonts</dir>
In addition I experienced this problem due to the config file: $ strace fc-match -s 2>&1 | tail -6 stat64("/usr/share/fonts", 0xbff0d8e4) = -1 ENOENT (No such file or directory) open("/usr/share/fonts", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = -1 ENOENT (No such file or directory) stat64("/home/sepen/.fonts", 0xbff0d8e4) = -1 ENOENT (No such file or directory) open("/home/sepen/.fonts", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = -1 ENOENT (No such file or directory) --- SIGSEGV (Segmentation fault) @ 0 (0) --- +++ killed by SIGSEGV +++ Regards, Jose V Beneyto
Jose V Beneyto wrote:
Hello,
maybe I'm wrong, I'm not an expert with fonts, but when I try to use fc-cache it's looking for /usr/share/fonts instead of /usr/lib/X11/fonts
$ sudo fc-cache -v /usr/share/fonts: skipping, no such directory /home/sepen/.fonts: skipping, no such directory /var/cache/fontconfig: cleaning cache directory /home/sepen/.fontconfig: not cleaning non-existent cache directory fc-cache: succeeded
$ sudo fc-cache -v /usr/lib/X11/fonts /usr/lib/X11/fonts: caching, new cache contents: 0 fonts, 7 dirs /usr/lib/X11/fonts/100dpi: caching, new cache contents: 304 fonts, 0 dirs /usr/lib/X11/fonts/75dpi: caching, new cache contents: 304 fonts, 0 dirs /usr/lib/X11/fonts/TTF: caching, new cache contents: 12 fonts, 0 dirs /usr/lib/X11/fonts/Type1: caching, new cache contents: 13 fonts, 0 dirs /usr/lib/X11/fonts/cyrillic: caching, new cache contents: 0 fonts, 0 dirs /usr/lib/X11/fonts/misc: caching, new cache contents: 47 fonts, 0 dirs /usr/lib/X11/fonts/util: caching, new cache contents: 0 fonts, 0 dirs /var/cache/fontconfig: cleaning cache directory /home/sepen/.fontconfig: not cleaning non-existent cache directory fc-cache: succeeded
indeed
$ pkginfo -o /usr/share/fonts pkginfo: no owner(s) found
(prt-get fsearch returns an empty result too)
I'm sure that I have the box uptodate:
$ prt-get diff No differences found
$ sudo rejmerge Nothing to merge
$ ls -la /var/lib/pkg/rejected/ total 0 drwxr-xr-x 2 root root 48 Apr 30 23:13 . drwxr-xr-x 3 root root 160 May 1 16:08 ..
imho it's due to the default line found in fonts.conf: $ grep '/usr/share/fonts' /etc/fonts/fonts.conf <dir>/usr/share/fonts</dir>
in this case, I think could be useful a little modification on rc.fix:
--- rc.fix.orig 2008-05-01 16:28:00.416021441 +0200 +++ rc.fix 2008-05-01 16:28:37.316020743 +0200 @@ -17,7 +17,7 @@ if [ -d /usr/lib/X11/fonts ]; then fi
if [ -d /var/cache/fontconfig ] && [ -z "`/bin/ls /var/cache/fontconfig/`" ]; then - fc-cache &> /dev/null + fc-cache /usr/lib/X11/fonts &> /dev/null fi
or would be better to change it on the config file /etc/fonts/fonts.conf
is that right?
Sorry, was my problem. After install some xorg fonts I should update fontconfig: $ sudo prt-get update fontconfig; sudo rejmerge That does the trick and replace /usr/share/fonts for the right one place. Please, excuse me and thanks. Jose V Beneyto
participants (1)
-
Jose V Beneyto