Tk Source Code

Check-in [dfe7373b]
Login

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

Overview
Comment: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.
Downloads: See separate download page
Timelines: family | ancestors | descendants | both | nab-win-bidi-paragraph
Files: files | file ages | folders
SHA3-256: dfe7373bb06d626bbaf6db97f910033a964dc5aaab8e428709938aa3073e76e7
User & Date: nab 2026-10-13 16:26:24.095
References
2026-10-13
16:28 • New ticket [d40ec3d4] Windows: no bidi analysis, left-to-right paragraph for every string. artifact: e65617b6 user: nab
Context
2026-10-13
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: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
14:55
Merge nab-win-color-emoji [fb670c4d9f]: color emoji on Windows (DirectWrite/Direct2D over the Uniscribe layout) and on X11 (HarfBuzz, color faces), with the UTS #51 classification shared by the font engines (mojibake, TkFontEmojiPresentation and TkFontEmojiContinuation). Tests winfont-8.x to 10.x, font-48.x. check-in: 36572376 user: nab tags: trunk, main
Changes
Unified Diff Side-by-Side Diff Patch
Changes to tests/winFont.test.
Changes to win/tkWinFont.c.