2

We are developing a WPF/C# application and having trouble corrupt font caches. Many of our users have old video drivers which are particularly buggy in regards to the font cache. We've worked with individual users to upgrade the drivers which usually solves the problem, but the problem only comes to our attention after the user has experienced a problem which makes our software unusable (which makes it look like our bug, not microsoft's).

We use only 2 fonts in our application at the moment. Can I tell WPF to bypass the font cache altogether to prevent these problems for our users when they're running our software?

1 Answers1

2

You might want to consider to not let the users with correct drivers suffer for those without.

Perhaps you can add a warning in the setup.

That said, you could stop the cache service (it is a service) but you need to be an administrator to stop services.

You might also have a look at clearing the font cache

Or you could see if delayed loading the fonts will help.

Community
  • 1
  • 1
Emond
  • 50,210
  • 11
  • 84
  • 115
  • Unfortunately, our software is usually installed by the client's IT department who runs the installer in large batches and tends to ignore warnings. Delay loading the fonts hasn't been effective to prevent the cache from becoming corrupt. We clear the cache and/or stop the service once we've been notified of a problem, but I'd like to avoid stopping the service altogether, which may have negative impacts on other software on their machine. I'm looking for a way to bypass it just for my software where I can control it's impact. – mustangchik83 Jun 18 '12 at 14:46