Tk Source Code

Check-in [5f33cd9e]
Login

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

Overview
Comment:Fix [d40ec3d41b]: on Windows, the paragraph direction of a string is that of its first strong character (UAX #9 P2, P3), as on X11 and macOS, and Uniscribe runs its bidi algorithm. Merge nab-win-bidi-paragraph: winfont-10.4, winfont-11.1 to 11.4.
Downloads: See separate download page
Timelines: family | ancestors | descendants | both | trunk | main
Files: files | file ages | folders
SHA3-256: 5f33cd9ec1e9a23bc308fa2364ef4df73d6a2c0201622ecb7d5edddd5dbb582d
User & Date: nab 2026-10-13 17:31:22.670
References
2026-10-13
17:32 • Closed ticket [d40ec3d4]: Windows: no bidi analysis, left-to-right paragraph for every string plus 6 other changes artifact: 41ec621c user: nab
Context
2026-10-13
18:56
Fix [1b22c74dc7]: on Windows, a label with Hebrew text in Courier hung. Courier claims the Hebrew letters, but Uniscribe cannot shape Hebrew with it (USP_E_SCRIPT_NOT_IN_FONT), so the range was dropped, nothing was measured, and the line layout did not advance. Reshape such a range with a fallback font, and if nothing can be shaped, measure the characters with the base font. Test winfont-12.1. closed check-in: d428fb86 user: serhiy.storchaka tags: win-script-not-in-font
18:49
Close fork check-in: 2b69ad6d user: kevin_walzer tags: trunk, main
17:31
Fix [d40ec3d41b]: on Windows, the paragraph direction of a string is that of its first strong character (UAX #9 P2, P3), as on X11 and macOS, and Uniscribe runs its bidi algorithm. Merge nab-win-bidi-paragraph: winfont-10.4, winfont-11.1 to 11.4. check-in: 5f33cd9e user: nab tags: trunk, main
16:35
Fix menubutton-10.2 on Windows and macOS: tk::MbButtonUp got the type of a menu which does not exist (bug 680884). check-in: a5c4e4d6 user: serhiy.storchaka tags: trunk, main
16:26
Windows: the paragraph direction of a string is that of its first strong character (UAX #9 P2, P3), as on X11 and macOS: ScriptItemize gets a bidi state and resolves the neutrals and the digits by their context; without one it did no bidi analysis, and a neutral or a number after a right-to-left word was drawn on its right. winfont-10.4 asserts the bidi placement, winfont-11.1 to 11.4 the paragraph direction. closed check-in: dfe7373b user: nab tags: nab-win-bidi-paragraph
Changes
Unified Diff Side-by-Side Diff Patch
Changes to tests/winFont.test.
Changes to win/tkWinFont.c.