Around 23 o''clock on May 26, Tony Houghton wrote:> fc-cache: "/usr/X11R6/lib/X11/fonts/Type1": caching, 29 fonts, 0 dirs > fc-cache: "/usr/X11R6/lib/X11/fonts/75dpi": caching, 0 fonts, 0 dirsIt appears that you have an older version of FreeType2 installed somewhere that is getting picked up by your applications. Old FreeType2 bits would fail to load .pcf.gz fonts correctly.> What''s the difference between "skipping" and "caching" BTW?Directories are ''skipped'' when they are already up to date, are not writable or non-existant. Use ''-f'' to force fontconfig to update directories which are up to date. -keith
I''m running Debian unstable but I recently upgraded to XFree86 4.3.0, using bind mounting to keep it separate from 4.2.1 which is still installed "in the background". My problem is that in XFree86, fc-cache is ignoring bitmap fonts ie everything in 75dpi and misc etc. The fonts are still working in non-fontconfig/xft apps and xfontsel. I''ve tried both the Debian fontconfig 2.2.0-2 and the version that comes with X. If I switch back to XFree86 4.2.1 they''re available again, but I haven''t tried fc-cache -v; I don''t want to in case it wipes out the working fonts.cache-1 files and I have no way at all of getting back the use of LucidaTypewriter in gnome-terminal. Then again I''m getting so used to (Andale) Mono now, that LucidaTypewriter looks weird in gvim! The output of fc-cache -v -f is: fc-cache: "/usr/X11R6/lib/X11/fonts/Type1": caching, 29 fonts, 0 dirs fc-cache: "/usr/X11R6/lib/X11/fonts/75dpi": caching, 0 fonts, 0 dirs fc-cache: "/usr/X11R6/lib/X11/fonts/misc": caching, 0 fonts, 0 dirs fc-cache: "/usr/share/fonts": caching, 0 fonts, 4 dirs fc-cache: "/usr/share/fonts/truetype": caching, 30 fonts, 1 dirs fc-cache: "/usr/share/fonts/truetype/xfree86-nonfree": caching, 0 fonts, 0 dirs fc-cache: "/usr/share/fonts/type1": caching, 0 fonts, 2 dirs fc-cache: "/usr/share/fonts/type1/xfree86-nonfree": caching, 0 fonts, 0 dirs fc-cache: "/usr/share/fonts/type1/gsfonts": caching, 35 fonts, 0 dirs fc-cache: "/usr/share/fonts/afms": caching, 0 fonts, 1 dirs fc-cache: "/usr/share/fonts/afms/adobe": caching, 0 fonts, 0 dirs fc-cache: "/usr/share/fonts/override": caching, 0 fonts, 0 dirs fc-cache: "/root/.fonts": no such directory, skipping fc-cache: "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType/": caching, 30 fonts, 0 dirs fc-cache: succeeded What''s the difference between "skipping" and "caching" BTW? -- TH * http://www.realh.co.uk
Around 13 o''clock on May 27, Tony Houghton wrote:> How old would it have to be not to work? I''ve just deleted the files > from the Debian package (2.1.4) and verified with ldd that fc-cache is > using the libfreetype2 that came with XFree86 4.3, and rerun it with -f, > but it still isn''t working.You deleted the working version and left the broken one. XFree86 4.3 includes ancient FreeType bits which should never be installed. Make sure you include: #define HasFontconfig YES #define HasExpat YES #define HasFreetype2 YES in your config/cf/host.def file before building X or you''ll end up with whatever broken versions are left around in XFree86 CVS. -keith
In <E19KTeb-0000FG-00@localhost>, Keith Packard wrote:> > Around 23 o''clock on May 26, Tony Houghton wrote: > > > fc-cache: "/usr/X11R6/lib/X11/fonts/Type1": caching, 29 fonts, 0 dirs > > fc-cache: "/usr/X11R6/lib/X11/fonts/75dpi": caching, 0 fonts, 0 dirs > > It appears that you have an older version of FreeType2 installed somewhere > that is getting picked up by your applications. Old FreeType2 bits would > fail to load .pcf.gz fonts correctly.How old would it have to be not to work? I''ve just deleted the files from the Debian package (2.1.4) and verified with ldd that fc-cache is using the libfreetype2 that came with XFree86 4.3, and rerun it with -f, but it still isn''t working. -- TH * http://www.realh.co.uk
Juliusz Chroboczek wrote:> TH> How old would it have to be not to work? I''ve just deleted the files > TH> from the Debian package (2.1.4) and verified with ldd that fc-cache is > TH> using the libfreetype2 that came with XFree86 4.3, and rerun it with -f, > TH> but it still isn''t working. > > The one that comes with XFree86 is a patched 2.1.3. Please use the > Debian 2.1.4-2 instead, which appears to be okay as far as PCF and PCF.gz > are concerned. > > (Stock 2.1.4 is still buggy w.r.t. BDF, although Debian might have > backported the fixes.)Looks like David just sync''d with 2.1.4, however he made a merge error. On 2001-09-14, Keith had explicitly enabled the bytecode interpreter. It looks as if it was accidently reverted in the process. Cheers, Nicholas
In <E19KhvN-0000mR-00@localhost>, Keith Packard wrote:> > Around 13 o''clock on May 27, Tony Houghton wrote: > > > How old would it have to be not to work? I''ve just deleted the files > > from the Debian package (2.1.4) and verified with ldd that fc-cache is > > using the libfreetype2 that came with XFree86 4.3, and rerun it with -f, > > but it still isn''t working. > > You deleted the working version and left the broken one. XFree86 4.3 > includes ancient FreeType bits which should never be installed. > > Make sure you include: > > #define HasFontconfig YES > #define HasExpat YES > #define HasFreetype2 YES > > in your config/cf/host.def file before building X or you''ll end up with > whatever broken versions are left around in XFree86 CVS.Aha, that''s fixed it [1], thanks. The X11 libs must have been taking precedence over the /usr/lib ones. [1] Except I haven''t bothered recompiling, I just deleted the installed libraries and header files I didn''t want. I take it it is safe to use XFree86 4.3''s libXft though? It seems OK so far... -- TH * http://www.realh.co.uk
TH> How old would it have to be not to work? I''ve just deleted the files TH> from the Debian package (2.1.4) and verified with ldd that fc-cache is TH> using the libfreetype2 that came with XFree86 4.3, and rerun it with -f, TH> but it still isn''t working. The one that comes with XFree86 is a patched 2.1.3. Please use the Debian 2.1.4-2 instead, which appears to be okay as far as PCF and PCF.gz are concerned. (Stock 2.1.4 is still buggy w.r.t. BDF, although Debian might have backported the fixes.) Juliusz