Tk Source Code

Check-in [3403347d]
Login

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

Overview
Comment:Fix cursor insertion bug in RTL text and selection bug in mixed-bidi text [59d6d5f6c0]; restore broken RTL text display on Windows; implement ::tk::startOfCluster/endOfCluster over Uniscribe API on Windows so it is always available
Downloads: See separate download page
Timelines: family | ancestors | descendants | both | trunk | main
Files: files | file ages | folders
SHA3-256: 3403347da90cfd4090b244a98935184253085c69bf6607e13e85fab39a48aa11
User & Date: kevin_walzer 2026-10-31 17:51:37.524
References
2026-11-01
12:04
Fix text shimmering while a selection is dragged on macOS (see [59d6d5f6c0]): since [3403347da9] every mark, the insertion cursor included, ended the base-char stretch, so the text on each side of the cursor was shaped and placed apart (glyphs moved by up to a pixel on macOS, Arabic lost its joining everywhere). Only embedded windows and images end the stretch now, FinalizeBaseChunk skips zero-width chunks again, as in 9.0, and the block cursor draws the text under it in context. Tests textDisp-42.3 to 42.8. check-in: 8a2c92b3 user: nab tags: nab-text-mark-stretch
Context
2026-10-31
17:53
Remove debugging statement check-in: 21ae31f7 user: kevin_walzer tags: trunk, main
17:51
Fix cursor insertion bug in RTL text and selection bug in mixed-bidi text [59d6d5f6c0]; restore broken RTL text display on Windows; implement ::tk::startOfCluster/endOfCluster over Uniscribe API on Windows so it is always available check-in: 3403347d user: kevin_walzer tags: trunk, main
17:00
Merge trunk closed check-in: 793f5d5a user: kevin_walzer tags: dancing_bidi
08:58
Merge canvtext-long-text-test: fix [271f61c768]: canvText-22.1 measures parts of the text instead of multiplying the width of one character, and covers the 512-glyph limit of the shaper ([4eef1fa86e]). Remove the aquaKnownBug constraint. check-in: ecd09bd7 user: serhiy.storchaka tags: trunk, main
Changes
Unified Diff Side-by-Side Diff Patch
Changes to generic/tkIcu.c.
Changes to generic/tkTextDisp.c.
Changes to library/text.tcl.
Changes to win/tkWinFont.c.