Tk Source Code

Check-in [123cc66f]
Login

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

Overview
Comment:Fix [d08538fd78]: Regression in 9.1: wrapped text counts spaces at end of line, splits words, breaks after leading spaces (X11 with bidi, Windows)
Downloads: See separate download page
Timelines: family | ancestors | descendants | both | trunk | main
Files: files | file ages | folders
SHA3-256: 123cc66f98a977d3bb92996a9ced024151a46b8fbbddbd104d34ca1179e13784
User & Date: serhiy.storchaka 2026-10-06 11:36:03.817
References
2026-10-06
11:44 • Ticket [d08538fd] Regression in 9.1: wrapped text counts spaces at end of line, splits words, breaks after leading spaces (X11 with bidi, Windows) status still Open with 3 other changes artifact: 747fe903 user: serhiy.storchaka
Context
2026-10-06
11:52
Fix [e8d4c8a577]: X11 (HarfBuzz/SheenBidi font backend): [font configure] of a font in use leaks the old font check-in: 13c5fdc0 user: serhiy.storchaka tags: trunk, main
11:36
Fix [d08538fd78]: Regression in 9.1: wrapped text counts spaces at end of line, splits words, breaks after leading spaces (X11 with bidi, Windows) check-in: 123cc66f user: serhiy.storchaka tags: trunk, main
10:37
Fix [a0c1a9c6c6]: Make the base chunk of the text layout thread-specific check-in: 2320e601 user: jan.nijtmans tags: trunk, main
2026-10-01
09:42
Fix [d08538fd78]: regression in 9.1 in word wrapping with the text shaping font backends (X11 with bidi, Windows). With TK_WHOLE_WORDS, Tk_MeasureChars() counted the spaces at the end of a line in its width, split a word which did not fit after a tab, and treated leading spaces as a word boundary (bug 1006286 again). Restore the 9.0 constraints of the tests which were disabled because of this. closed check-in: 0ef89066 user: serhiy.storchaka tags: shaping-whole-words
Changes
Unified Diff Side-by-Side Diff Patch
Changes to changes.md.
Changes to tests/canvText.test.
Changes to tests/font.test.
Changes to tests/textDisp.test.
Changes to tests/unixFont.test.
Changes to unix/tkUnixBidiFont.c.
Changes to win/tkWinFont.c.