[Bug 26218] Lylian: text hardly readable

WineHQ Bugzilla wine-bugs at winehq.org
Mon Jan 25 22:05:32 CST 2021


https://bugs.winehq.org/show_bug.cgi?id=26218

Jeff Smith <whydoubt at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |whydoubt at gmail.com

--- Comment #9 from Jeff Smith <whydoubt at 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.

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list