Tk Source Code

Check-in [5299492c]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix [7579c335f1]: Text widget: wrong bbox widths for non-ASCII characters with bidi text rendering
Downloads: See separate download page
Timelines: family | ancestors | descendants | both | trunk | main
Files: files | file ages | folders
SHA3-256: 5299492cd8c22dc460d3a7a76b41f782154bb3ee2e947ecad597dd4fb4a146c7
User & Date: jan.nijtmans 2026-09-25 14:08:32.359
References
2026-09-25
14:10 • Closed ticket [7579c335]: Text widget: wrong bbox widths for non-ASCII characters with bidi text rendering plus 8 other changes artifact: 8620e3ae user: jan.nijtmans
Context
2026-09-25
14:13
Fix [5d52ad92fa]: creating widgets is slow when an input method is active check-in: e978f0d4 user: jan.nijtmans tags: trunk, main
14:08
Fix [7579c335f1]: Text widget: wrong bbox widths for non-ASCII characters with bidi text rendering check-in: 5299492c user: jan.nijtmans tags: trunk, main
13:02
Fix [9087fae43f]: configure: X11 header check always fails check-in: bf45f48c user: jan.nijtmans tags: trunk, main
2026-09-24
11:27
Fix text widget bbox widths for multi-byte characters with bidi text rendering.

CharBboxProc() measured the character at byteIndex as one byte, which ends in the middle of a multi-byte UTF-8 character. The bidi measuring code does not tolerate this. Now it measures up to the start of the next character. [Bug 7579c335f1] closed check-in: f74f65f3 user: serhiy.storchaka tags: text-bbox-multibyte

Changes
Unified Diff Side-by-Side Diff Patch
Changes to generic/tkTextDisp.c.
Changes to tests/textDisp.test.