gdi32-related commit between 0.9.57<->0.9.58 broken .NET2/Systems.Windows.Forms

Huw Davies huw at
Wed Mar 26 10:21:02 CDT 2008

On Wed, Mar 26, 2008 at 02:55:07PM +0000, Hin-Tak Leung wrote:
> --- On Wed, 26/3/08, Huw Davies <huw at> wrote:
> <snipped>
> > > The error message I got was 'attempt to read or
> > write protected memory. This is often
> > > an indication that other memory is corrupt'.
> >  
> > Hi,
> > 
> > Could you explain how this breaks .NET2, I can't see
> > why it should at the moment?
> > The purpose of the commit is to do what Windows does.
> I am not entirely sure myself - all I know is I did a git bisect to find what was 
> the problematic commit, and reverting this particular commit on top of 0.9.58 fixes my problem. 
> My understanding is that the .NET framework uses the windows registry font
> entries for font look-ups, according to the discussion in, and it loads fonts directly based on the registry font list and does its own rendering thing with the font files directly; 
> So changing font registry entries break things.

Well yes, but that doesn't actually mean the patch is incorrect.

Do you by any chance have the font 'ukai.ttf' installed?  If so could
you try removing it from your fontconfig path and see if that helps?

Huw Davies
huw at

More information about the wine-devel mailing list