mustangchik83
mustangchik83

Reputation: 21

Can I bypass use of the WPF font cache?

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?

Upvotes: 2

Views: 930

Answers (1)

Emond
Emond

Reputation: 50682

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.

Upvotes: 2

Related Questions