Where in the code does wine read fonts?

Per Olesen pol at trifork.com
Thu Nov 4 08:38:16 CDT 2010


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

More information about the wine-devel mailing list