I'm experiencing a weird issue with this font (http://moorstation.org/typoasis/designers/graham/fonts/fuzzyxmas.zip). I install it in a directory under my fonts directory at /usr/share/fonts. All fonts work fine, except this one. This font works fine when installed, but after restarting the system, fontconfig is not able to find the font, although the file is there. Moving the font to the home directory and to the font directory again solves the issue, but I guess there might be something wrong in fontconfig. Thanks for your excellent work and your help, Pablo
Please explain more details, how did you figure out that font "works" and where were you "not able to find the font" on.
(In reply to comment #1) > Please explain more details, how did you figure out that font "works" and where > were you "not able to find the font" on. Actually doing the following with fc-list: $ fc-list "Fuzzy Xmas" $ fc-list "Fuzzy Xmas" $ fc-list "Fuzzy Xmas" $ cd /usr/share/fonts/ $ ls -lh FuzzyXmas.ttf -rw-r--r--. 1 root root 285K Nov 5 1999 FuzzyXmas.ttf $ fc-list "Fuzzy Xmas" $ su Password: # mv FuzzyXmas.ttf Fuzzy-Xmas.ttf # exit $ fc-list "Fuzzy Xmas" Fuzzy Xmas:style=Regular After moving or renaming the font in the same directory fc-list is able to find it. What is wrong here? Thanks, Pablo
usually even if you didn't run fc-cache as root after the new font is installed, fontconfig will tries to create one during the query at $HOME/.fontconfig. possible situation causing this may be: 1. the mtime of /usr/share/fonts is newer than FuzzyXmas.ttf 2. $HOME/.fontconfig isn't writable for 1, if you use any filesystem that doesn't update mtime with copying, I suppose it's not a bug in fontconfig since fontconfig relies on the mtime to detect the changes to re-generate the cache. anyway, that would be good idea to try fc-cache -v or FC_DEBUG=16 fc-cache -v as root to see how fontconfig determines when generating the cache.
Any comments?
I have installed Fedora 16 in the meantime. Fedora 16 comes with fontconfig-2.8.0, I have created a symbolic link to a font directory at my user at home (owner and group for these being root). The directory is recognized, but the fonts aren't listed with fc-list (FcCacheTimeValid dir "/usr/share/fonts/ousia-fonts" cache time 1330716933 dir time 1330716933). # FC_DEBUG=16 fc-cache -v FC_DEBUG=16 /usr/share/fonts: FcCacheTimeValid dir "/usr/share/fonts" cache time 1331455501 dir time 1331455501 skipping, existing cache is valid: 0 fonts, 35 dirs /usr/share/fonts/abattis-cantarell: FcCacheTimeValid dir "/usr/share/fonts/abattis-cantarell" cache time 1320287314 dir time 1320287314 skipping, existing cache is valid: 2 fonts, 0 dirs /usr/share/fonts/cjkuni-uming: FcCacheTimeValid dir "/usr/share/fonts/cjkuni-uming" cache time 1320287425 dir time 1320287425 skipping, existing cache is valid: 4 fonts, 0 dirs /usr/share/fonts/default: FcCacheTimeValid dir "/usr/share/fonts/default" cache time 1320287332 dir time 1320287332 skipping, existing cache is valid: 0 fonts, 2 dirs /usr/share/fonts/default/Type1: FcCacheTimeValid dir "/usr/share/fonts/default/Type1" cache time 1320287331 dir time 1320287331 skipping, existing cache is valid: 35 fonts, 0 dirs /usr/share/fonts/default/ghostscript: FcCacheTimeValid dir "/usr/share/fonts/default/ghostscript" cache time 1320287332 dir time 1320287332 skipping, existing cache is valid: 4 fonts, 0 dirs /usr/share/fonts/dejavu: FcCacheTimeValid dir "/usr/share/fonts/dejavu" cache time 1320287435 dir time 1320287435 skipping, existing cache is valid: 21 fonts, 0 dirs /usr/share/fonts/jomolhari: FcCacheTimeValid dir "/usr/share/fonts/jomolhari" cache time 1320287441 dir time 1320287441 skipping, existing cache is valid: 1 fonts, 0 dirs /usr/share/fonts/khmeros: FcCacheTimeValid dir "/usr/share/fonts/khmeros" cache time 1320287427 dir time 1320287427 skipping, existing cache is valid: 3 fonts, 0 dirs /usr/share/fonts/liberation: FcCacheTimeValid dir "/usr/share/fonts/liberation" cache time 1331455499 dir time 1331455499 skipping, existing cache is valid: 16 fonts, 0 dirs /usr/share/fonts/lklug: FcCacheTimeValid dir "/usr/share/fonts/lklug" cache time 1320287430 dir time 1320287430 skipping, existing cache is valid: 1 fonts, 0 dirs /usr/share/fonts/lohit-assamese: FcCacheTimeValid dir "/usr/share/fonts/lohit-assamese" cache time 1332686481 dir time 1332686481 skipping, existing cache is valid: 1 fonts, 0 dirs /usr/share/fonts/lohit-bengali: FcCacheTimeValid dir "/usr/share/fonts/lohit-bengali" cache time 1332686489 dir time 1332686489 skipping, existing cache is valid: 1 fonts, 0 dirs /usr/share/fonts/lohit-devanagari: FcCacheTimeValid dir "/usr/share/fonts/lohit-devanagari" cache time 1320287432 dir time 1320287432 skipping, existing cache is valid: 1 fonts, 0 dirs /usr/share/fonts/lohit-gujarati: FcCacheTimeValid dir "/usr/share/fonts/lohit-gujarati" cache time 1332686492 dir time 1332686492 skipping, existing cache is valid: 1 fonts, 0 dirs /usr/share/fonts/lohit-kannada: FcCacheTimeValid dir "/usr/share/fonts/lohit-kannada" cache time 1332686486 dir time 1332686486 skipping, existing cache is valid: 1 fonts, 0 dirs /usr/share/fonts/lohit-oriya: FcCacheTimeValid dir "/usr/share/fonts/lohit-oriya" cache time 1332686491 dir time 1332686491 skipping, existing cache is valid: 1 fonts, 0 dirs /usr/share/fonts/lohit-punjabi: FcCacheTimeValid dir "/usr/share/fonts/lohit-punjabi" cache time 1332686483 dir time 1332686483 skipping, existing cache is valid: 1 fonts, 0 dirs /usr/share/fonts/lohit-tamil: FcCacheTimeValid dir "/usr/share/fonts/lohit-tamil" cache time 1320287421 dir time 1320287421 skipping, existing cache is valid: 1 fonts, 0 dirs /usr/share/fonts/lohit-telugu: FcCacheTimeValid dir "/usr/share/fonts/lohit-telugu" cache time 1332686487 dir time 1332686487 skipping, existing cache is valid: 1 fonts, 0 dirs /usr/share/fonts/paktype-naqsh: FcCacheTimeValid dir "/usr/share/fonts/paktype-naqsh" cache time 1320287446 dir time 1320287446 skipping, existing cache is valid: 1 fonts, 0 dirs /usr/share/fonts/paktype-tehreer: FcCacheTimeValid dir "/usr/share/fonts/paktype-tehreer" cache time 1320287420 dir time 1320287420 skipping, existing cache is valid: 1 fonts, 0 dirs /usr/share/fonts/paratype-pt-sans: FcCacheTimeValid dir "/usr/share/fonts/paratype-pt-sans" cache time 1320287447 dir time 1320287447 skipping, existing cache is valid: 6 fonts, 0 dirs /usr/share/fonts/sil-abyssinica: FcCacheTimeValid dir "/usr/share/fonts/sil-abyssinica" cache time 1320287439 dir time 1320287439 skipping, existing cache is valid: 1 fonts, 0 dirs /usr/share/fonts/sil-padauk: FcCacheTimeValid dir "/usr/share/fonts/sil-padauk" cache time 1320287448 dir time 1320287448 skipping, existing cache is valid: 2 fonts, 0 dirs /usr/share/fonts/smc: FcCacheTimeValid dir "/usr/share/fonts/smc" cache time 1330877845 dir time 1330877845 skipping, existing cache is valid: 1 fonts, 0 dirs /usr/share/fonts/stix: FcCacheTimeValid dir "/usr/share/fonts/stix" cache time 1320287431 dir time 1320287431 skipping, existing cache is valid: 4 fonts, 0 dirs /usr/share/fonts/thai-scalable: FcCacheTimeValid dir "/usr/share/fonts/thai-scalable" cache time 1330877843 dir time 1330877843 skipping, existing cache is valid: 4 fonts, 0 dirs /usr/share/fonts/un-core: FcCacheTimeValid dir "/usr/share/fonts/un-core" cache time 1320287428 dir time 1320287428 skipping, existing cache is valid: 2 fonts, 0 dirs /usr/share/fonts/vlgothic: FcCacheTimeValid dir "/usr/share/fonts/vlgothic" cache time 1333180533 dir time 1333180533 skipping, existing cache is valid: 1 fonts, 0 dirs /usr/share/fonts/wine-courier-fonts: FcCacheTimeValid dir "/usr/share/fonts/wine-courier-fonts" cache time 1333180531 dir time 1333180531 skipping, existing cache is valid: 8 fonts, 0 dirs /usr/share/fonts/wine-marlett-fonts: FcCacheTimeValid dir "/usr/share/fonts/wine-marlett-fonts" cache time 1333180530 dir time 1333180530 skipping, existing cache is valid: 1 fonts, 0 dirs /usr/share/fonts/wine-ms-sans-serif-fonts: FcCacheTimeValid dir "/usr/share/fonts/wine-ms-sans-serif-fonts" cache time 1333180528 dir time 1333180528 skipping, existing cache is valid: 26 fonts, 0 dirs /usr/share/fonts/wine-small-fonts: FcCacheTimeValid dir "/usr/share/fonts/wine-small-fonts" cache time 1333180528 dir time 1333180528 skipping, existing cache is valid: 9 fonts, 0 dirs /usr/share/fonts/wine-symbol-fonts: FcCacheTimeValid dir "/usr/share/fonts/wine-symbol-fonts" cache time 1333180531 dir time 1333180531 skipping, existing cache is valid: 1 fonts, 0 dirs /usr/share/fonts/wine-system-fonts: FcCacheTimeValid dir "/usr/share/fonts/wine-system-fonts" cache time 1333180529 dir time 1333180529 skipping, existing cache is valid: 15 fonts, 0 dirs /usr/share/fonts/wine-tahoma-fonts: FcCacheTimeValid dir "/usr/share/fonts/wine-tahoma-fonts" cache time 1333180529 dir time 1333180529 skipping, existing cache is valid: 2 fonts, 0 dirs /usr/share/fonts/wqy-zenhei: FcCacheTimeValid dir "/usr/share/fonts/wqy-zenhei" cache time 1320287438 dir time 1320287438 skipping, existing cache is valid: 3 fonts, 0 dirs /usr/share/X11/fonts/Type1: FcCacheTimeValid dir "/usr/share/X11/fonts/Type1" cache time 1330881756 dir time 1330881756 skipping, existing cache is valid: 13 fonts, 0 dirs /usr/share/X11/fonts/TTF: skipping, no such directory /usr/local/share/fonts: skipping, no such directory /root/.fonts: skipping, no such directory /var/cache/fontconfig: cleaning cache directory FcCacheTimeValid dir "/usr/share/fonts/khmeros" cache time 1320287427 dir time 1320287427 FcCacheTimeValid dir "/usr/share/fonts/paratype-pt-sans" cache time 1320287447 dir time 1320287447 FcCacheTimeValid dir "/usr/share/fonts/wine-marlett-fonts" cache time 1333180530 dir time 1333180530 FcCacheTimeValid dir "/usr/share/fonts/lohit-gujarati" cache time 1332686492 dir time 1332686492 FcCacheTimeValid dir "/usr/share/fonts/thai-scalable" cache time 1330877843 dir time 1330877843 FcCacheTimeValid dir "/usr/share/fonts/sil-padauk" cache time 1320287448 dir time 1320287448 FcCacheTimeValid dir "/usr/share/fonts/paktype-naqsh" cache time 1320287446 dir time 1320287446 FcCacheTimeValid dir "/usr/share/fonts/lohit-telugu" cache time 1332686487 dir time 1332686487 FcCacheTimeValid dir "/usr/share/fonts/vlgothic" cache time 1333180533 dir time 1333180533 FcCacheTimeValid dir "/usr/share/X11/fonts/Type1" cache time 1330881756 dir time 1330881756 FcCacheTimeValid dir "/usr/share/fonts/smc" cache time 1330877845 dir time 1330877845 FcCacheTimeValid dir "/usr/share/fonts/ousia-fonts" cache time 1330716933 dir time 1330716933 FcCacheTimeValid dir "/usr/share/fonts" cache time 1331455501 dir time 1331455501 FcCacheTimeValid dir "/usr/share/fonts/wine-system-fonts" cache time 1333180529 dir time 1333180529 FcCacheTimeValid dir "/usr/share/fonts/lklug" cache time 1320287430 dir time 1320287430 FcCacheTimeValid dir "/usr/share/fonts/wqy-zenhei" cache time 1320287438 dir time 1320287438 FcCacheTimeValid dir "/usr/share/fonts/abattis-cantarell" cache time 1320287314 dir time 1320287314 FcCacheTimeValid dir "/usr/share/fonts/paktype-tehreer" cache time 1320287420 dir time 1320287420 FcCacheTimeValid dir "/usr/share/fonts/liberation" cache time 1331455499 dir time 1331455499 FcCacheTimeValid dir "/usr/share/fonts/wine-symbol-fonts" cache time 1333180531 dir time 1333180531 FcCacheTimeValid dir "/usr/share/fonts/lohit-bengali" cache time 1332686489 dir time 1332686489 FcCacheTimeValid dir "/usr/share/fonts/wine-small-fonts" cache time 1333180528 dir time 1333180528 FcCacheTimeValid dir "/usr/share/fonts/lohit-punjabi" cache time 1332686483 dir time 1332686483 FcCacheTimeValid dir "/usr/share/fonts/wine-tahoma-fonts" cache time 1333180529 dir time 1333180529 FcCacheTimeValid dir "/usr/share/fonts/jomolhari" cache time 1320287441 dir time 1320287441 FcCacheTimeValid dir "/usr/share/fonts/lohit-assamese" cache time 1332686481 dir time 1332686481 FcCacheTimeValid dir "/usr/share/fonts/default/Type1" cache time 1320287331 dir time 1320287331 FcCacheTimeValid dir "/usr/share/fonts/lohit-devanagari" cache time 1320287432 dir time 1320287432 FcCacheTimeValid dir "/usr/share/fonts/dejavu" cache time 1320287435 dir time 1320287435 FcCacheTimeValid dir "/usr/share/fonts/lohit-kannada" cache time 1332686486 dir time 1332686486 FcCacheTimeValid dir "/usr/share/fonts/wine-ms-sans-serif-fonts" cache time 1333180528 dir time 1333180528 FcCacheTimeValid dir "/usr/share/fonts/default" cache time 1320287332 dir time 1320287332 FcCacheTimeValid dir "/usr/share/fonts/wine-courier-fonts" cache time 1333180531 dir time 1333180531 FcCacheTimeValid dir "/usr/share/fonts/lohit-tamil" cache time 1320287421 dir time 1320287421 FcCacheTimeValid dir "/usr/share/fonts/cjkuni-uming" cache time 1320287425 dir time 1320287425 FcCacheTimeValid dir "/usr/share/fonts/lohit-oriya" cache time 1332686491 dir time 1332686491 FcCacheTimeValid dir "/usr/share/fonts/un-core" cache time 1320287428 dir time 1320287428 FcCacheTimeValid dir "/usr/share/fonts/sil-abyssinica" cache time 1320287439 dir time 1320287439 FcCacheTimeValid dir "/usr/share/fonts/stix" cache time 1320287431 dir time 1320287431 FcCacheTimeValid dir "/usr/share/fonts/default/ghostscript" cache time 1320287332 dir time 1320287332 /root/.fontconfig: not cleaning non-existent cache directory fc-cache: succeeded Many thanks for your help, Pablo
(In reply to comment #5) > I have installed Fedora 16 in the meantime. Fedora 16 comes with > fontconfig-2.8.0, > > I have created a symbolic link to a font directory at my user at home (owner > and group for these being root). The directory is recognized, but the fonts > aren't listed with fc-list (FcCacheTimeValid dir "/usr/share/fonts/ousia-fonts" > cache time 1330716933 dir time 1330716933). Why do you want to have a symlink to /usr/share/fonts/ousia-fonts on your home? fontconfig is supposed to go through the directories under /usr/share/fonts recursively by default. plus, those logs looks strange because there are no logs how many fonts are installed under its directory. are you sure you have a permission to access it? what happens if you do "FC_DEBUG=16 fc-cache -fv /usr/share/fonts/ousia-fonts" ?
(In reply to comment #6) > Why do you want to have a symlink to /usr/share/fonts/ousia-fonts on your home? Is easier for me to manage the fonts in that way? Is there any problems with that? > fontconfig is supposed to go through the directories under /usr/share/fonts > recursively by default. plus, those logs looks strange because there are no > logs. Sorry, I don't know what this might be. > how many fonts are installed under its directory. are you sure you have a > permission to access it? Reading access granted to all (644). All fonts have the same permissions. > what happens if you do "FC_DEBUG=16 fc-cache -fv /usr/share/fonts/ousia-fonts" > ? I assumed you wanted me to run it as root: # FC_DEBUG=16 fc-cache -fv /usr/share/fonts/ousia-fonts FC_DEBUG=16 /usr/share/fonts/ousia-fonts: charsets 339 -> 162 leaves 5238 -> 798 FcDirCacheWriteDir dir "/usr/share/fonts/ousia-fonts" file "/var/cache/fontconfig/696594d6832dc7e324ed1f081b5fd9fc-le32d4.cache-3" caching, new cache contents: 339 fonts, 0 dirs /var/cache/fontconfig: cleaning cache directory FcCacheTimeValid dir "/usr/share/fonts/khmeros" cache time 1320287427 dir time 1320287427 FcCacheTimeValid dir "/usr/share/fonts/paratype-pt-sans" cache time 1320287447 dir time 1320287447 FcCacheTimeValid dir "/usr/share/fonts/wine-marlett-fonts" cache time 1333180530 dir time 1333180530 FcCacheTimeValid dir "/usr/share/fonts/lohit-gujarati" cache time 1332686492 dir time 1332686492 FcCacheTimeValid dir "/usr/share/fonts/thai-scalable" cache time 1330877843 dir time 1330877843 FcCacheTimeValid dir "/usr/share/fonts/sil-padauk" cache time 1320287448 dir time 1320287448 FcCacheTimeValid dir "/usr/share/fonts/paktype-naqsh" cache time 1320287446 dir time 1320287446 FcCacheTimeValid dir "/usr/share/fonts/lohit-telugu" cache time 1332686487 dir time 1332686487 FcCacheTimeValid dir "/usr/share/fonts/vlgothic" cache time 1333180533 dir time 1333180533 FcCacheTimeValid dir "/usr/share/X11/fonts/Type1" cache time 1330881756 dir time 1330881756 FcCacheTimeValid dir "/usr/share/fonts/smc" cache time 1330877845 dir time 1330877845 FcCacheTimeValid dir "/usr/share/fonts/ousia-fonts" cache time 1330716933 dir time 1330716933 FcCacheTimeValid dir "/usr/share/fonts" cache time 1331455501 dir time 1331455501 FcCacheTimeValid dir "/usr/share/fonts/wine-system-fonts" cache time 1333180529 dir time 1333180529 FcCacheTimeValid dir "/usr/share/fonts/lklug" cache time 1320287430 dir time 1320287430 FcCacheTimeValid dir "/usr/share/fonts/wqy-zenhei" cache time 1320287438 dir time 1320287438 FcCacheTimeValid dir "/usr/share/fonts/abattis-cantarell" cache time 1320287314 dir time 1320287314 FcCacheTimeValid dir "/usr/share/fonts/paktype-tehreer" cache time 1320287420 dir time 1320287420 FcCacheTimeValid dir "/usr/share/fonts/liberation" cache time 1331455499 dir time 1331455499 FcCacheTimeValid dir "/usr/share/fonts/wine-symbol-fonts" cache time 1333180531 dir time 1333180531 FcCacheTimeValid dir "/usr/share/fonts/lohit-bengali" cache time 1332686489 dir time 1332686489 FcCacheTimeValid dir "/usr/share/fonts/wine-small-fonts" cache time 1333180528 dir time 1333180528 FcCacheTimeValid dir "/usr/share/fonts/lohit-punjabi" cache time 1332686483 dir time 1332686483 FcCacheTimeValid dir "/usr/share/fonts/wine-tahoma-fonts" cache time 1333180529 dir time 1333180529 FcCacheTimeValid dir "/usr/share/fonts/jomolhari" cache time 1320287441 dir time 1320287441 FcCacheTimeValid dir "/usr/share/fonts/lohit-assamese" cache time 1332686481 dir time 1332686481 FcCacheTimeValid dir "/usr/share/fonts/default/Type1" cache time 1320287331 dir time 1320287331 FcCacheTimeValid dir "/usr/share/fonts/lohit-devanagari" cache time 1333473416 dir time 1333473416 FcCacheTimeValid dir "/usr/share/fonts/dejavu" cache time 1320287435 dir time 1320287435 FcCacheTimeValid dir "/usr/share/fonts/lohit-kannada" cache time 1332686486 dir time 1332686486 FcCacheTimeValid dir "/usr/share/fonts/wine-ms-sans-serif-fonts" cache time 1333180528 dir time 1333180528 FcCacheTimeValid dir "/usr/share/fonts/default" cache time 1320287332 dir time 1320287332 FcCacheTimeValid dir "/usr/share/fonts/wine-courier-fonts" cache time 1333180531 dir time 1333180531 FcCacheTimeValid dir "/usr/share/fonts/lohit-tamil" cache time 1320287421 dir time 1320287421 FcCacheTimeValid dir "/usr/share/fonts/cjkuni-uming" cache time 1320287425 dir time 1320287425 FcCacheTimeValid dir "/usr/share/fonts/lohit-oriya" cache time 1332686491 dir time 1332686491 FcCacheTimeValid dir "/usr/share/fonts/un-core" cache time 1320287428 dir time 1320287428 FcCacheTimeValid dir "/usr/share/fonts/sil-abyssinica" cache time 1320287439 dir time 1320287439 FcCacheTimeValid dir "/usr/share/fonts/stix" cache time 1320287431 dir time 1320287431 FcCacheTimeValid dir "/usr/share/fonts/default/ghostscript" cache time 1320287332 dir time 1320287332 /root/.fontconfig: not cleaning non-existent cache directory fc-cache: succeeded Many thanks for your help, Pablo
(In reply to comment #7) > > what happens if you do "FC_DEBUG=16 fc-cache -fv /usr/share/fonts/ousia-fonts" > > ? > > I assumed you wanted me to run it as root: I don't mind either. as I wrote the above, even if you run it on your account, you'll get a cache on $HOME/.fontconfig. > # FC_DEBUG=16 fc-cache -fv /usr/share/fonts/ousia-fonts > FC_DEBUG=16 > /usr/share/fonts/ousia-fonts: > charsets 339 -> 162 leaves 5238 -> 798 > FcDirCacheWriteDir dir "/usr/share/fonts/ousia-fonts" file > "/var/cache/fontconfig/696594d6832dc7e324ed1f081b5fd9fc-le32d4.cache-3" > caching, new cache contents: 339 fonts, 0 dirs Anyway, that means you didn't have any caches for that font. so are you still facing this issue?
(In reply to comment #8) > > # FC_DEBUG=16 fc-cache -fv /usr/share/fonts/ousia-fonts > > FC_DEBUG=16 > > /usr/share/fonts/ousia-fonts: > > charsets 339 -> 162 leaves 5238 -> 798 > > FcDirCacheWriteDir dir "/usr/share/fonts/ousia-fonts" file > > "/var/cache/fontconfig/696594d6832dc7e324ed1f081b5fd9fc-le32d4.cache-3" > > caching, new cache contents: 339 fonts, 0 dirs > > Anyway, that means you didn't have any caches for that font. so are you still > facing this issue? It seems that the issue is not fixed. Closing the issue myself (as invalid). Many thanks for your help, Pablo
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.