https://bugs.winehq.org/show_bug.cgi?id=26218
Jeff Smith whydoubt@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |whydoubt@gmail.com
--- Comment #9 from Jeff Smith whydoubt@gmail.com --- I understand what is causing this, but the fix is not trivial.
The program caches bitmaps of individual characters using ExtTextOut. However, if 1. the glyph for the first character contains a negative left bearing, or 2. the glyph for the final character contains a negative right bearing, or 3. the italics flag is set for the loaded font, then a portion of the bounding box may not be painted by Wine's ExtTextOut. This sometimes allows leftover parts of other glyphs to appear.
It seems to me that the fix would involve expanding the bounding box to encompass all of the text (filling it with the background color), before actually drawing the text.