This bug is a follow-up of an old Xft 2.0 bug which was fixed by keith 6 months ago (I'll attached the fix patch) but which has reappear when switching to Xft 2.1. Patch is no longer applicable (partially merged), so I guess some part of it are missing. In Mozilla GTK2, if you try to display web pages containing both AA and non-AA glyphs on the same line (usually, when displaying Japanese, Korean or Chinese pages, with only unscalable fonts), non-AA glyphs are output as garbage. For what I recall from irc discussion with keith, it was a bug in Xft which was fixed by the attached patch... Unfortunately, it is back with Xft 2.1.
Created attachment 51 [details] [review] Patch for fix the bug with Xft 2.0
Test page for mozilla/xft : http://www.uue.org/~mr/japtest.html
I've tried to dig further for this bug (in fact, I was able to apply the format = 0 and if (!format || format->|| font->format->depth > format->depth) ormat = font->format;) stuff. It fixed the garbare but it also changed glyphs rendering (hinting mainly).. I'm not sure it is the right fix to use.. Any idea ?
Sorry, my latest comment is incorrect, it doesn't fix glyph corruption..
I s*ck when I backported xft 2.1.2 to our XFree86 package.. I forgot xftrender.c changes :((
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.