wine cannot handle fc-cache (64bit) but fc-cache32 is okay

2010-11-08 Thread Per Olesen
Hi

Is it as-it-should-be, that wine only handles 32bit fc-cache?

Is it known, that executing the 64bit version /usr/sbin/fc-cache will make the 
font-cache fail for wine, hence making wine *very* slow to startup? Rebuilding 
the cache with fc-cache32 makes wine start quickly again. It seems that the 
actual font cache format for fc-cache has changed between architectures.

?

Regards, Per





Where in the code does wine read fonts?

2010-11-04 Thread Per Olesen
Hi!

I am trying to figure out how wine reads fonts on startup but am having a 
little trouble. I checked out the source and found a lot of good stuff in 
"winex11.drv/xfont.c", but I am not sure this is actually the code, that gets 
executed when my wine boots. What I experience, is that wine reads the X fonts, 
using the fontconfig library. Is that correct?

Maybe I should say *why* I am digging into the font handling in the code. When 
I rebuild the system fontcache (using "fc-cache"), wine suddenly gets painfully 
slow to boot. When I revert to the old cache I had before rebuild, it gets fast 
again. Listing the cache content (using "fc-list") yields the same amount of 
fonts before and after rebuild, so I find it strange with the extra boot time. 
Actually, it would be better for me to NOT have wine read the X fonts (I think).

So, I tried digging in to understand it better from the code.

Is there a central place in the source code I am missing, that could lead me to 
the lightsource :-)

Regards, Per