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

Bug#318149: libxft2: Loading true type fonts takes really long



Keith Packard wrote:

On Wed, 2005-07-13 at 21:20 +0200, Thomas Weidner wrote:
Package: libxft2
Version: 2.1.7-1
Severity: normal

Hi,
after doing the update to Xorg last night. opening truetype fonts lasts
really long. That means every app which loads some true type font need
~5s longer to start. Doing a simple ltrace -r xfd -fa Sans shows this:
0.000125 XftFontOpenName(0x8055518, 0, 0x805a86c, 0xb7db296c, 1) =
0x8079240
5.373982 FcCharSetFirstPage(0x811dd98, 0xbf81b7e0, 0xbf81b800, 0,
0xb7d77f30) notice that the call to XftFontOpenName takes ~5s!.
I don't know if it's actually libxft2's fault, but it's where the
function cames from.

I suspect you've been fooled by missing symbols here; the
FcCharSetFirstPage function should execute in a tiny constant amount of
time. It's much more likely that some font information isn't getting
cached properly, or that you have some font which is confusing
fontconfig.

Try 'fc-cache -v' and see if that takes a long time, if so, send along
the output of 'FC_DEBUG=384 fc-cache -v' and I might be able to figure
out what's going on.
i ran fc-cache -v. the first time it took a bit, but all further runs took a quite short time. also the problem does not occur any more, all applications start up faster now. Seems like the fontconfig cache was simply not usable any more. *feels a bit like a idiot* But nevertheless some package update corrupted/invalidated the font config cache and missed to regenerate it, this should not happen,right? Sadly i cannot say which package is it...

   mfg Thomas



Reply to: