| Ticket UUID: | 1815246 | |||
| Title: | text broken but canvas ok | |||
| Type: | Bug | Version: | 8.4.11, 8.6.18, 9.0.5, 9.1b1 | |
| Submitter: | nobody | Created on: | 2007-10-17 17:59:36 | |
| Subsystem: | 18. [text] | Assigned To: | hobbs | |
| Priority: | 5 Medium | Severity: | ||
| Status: | Pending | Last Modified: | 2026-09-22 11:48:18 | |
| Resolution: | None | Closed By: | ||
| Closed on: | ||||
| Description: |
While using arabic characters I found a strange behaviour of tcl/tk. The canvas widget and the text widget should give the same display when both are given the same text, but the following two snippets show a difference. The canvas widget works as expected and displays the character \uFEA0 with a diacritic sign \u0651 above it: font create titusFont -family "TITUS Cyberbit Basic" -size 48 canvas .c -width 500 -height 500 pack .c .c create text 300 300 -font titusFont -text "\u0651\uFEA0" Trying the same with a text widget distorts the display. The base sign \uFEA0 renders fine but the diacritic \u0651 is reduced to only one pixel width: font create titusFont -family "TITUS Cyberbit Basic" -size 48 text .t -font titusFont -width 20 -height 3 pack .t .t insert end "\u0651\uFEA0" Is this an error of TK or am I doing something wrong? I get this strange behaviour with tcl/tk version 8.4.11, 8.4.14, and 8.5a3under linux with X11R6 version 6.8.2. | |||
| User Comments: |
serhiy.storchaka added on 2026-09-22 11:48:18:
I cannot reproduce with 8.6.18, 9.0.5 and 9.1: the canvas text item and the text widget render "\u0651\uFEA0" the same way, with the shadda above the base letter. Checked on X11 with Xft (DejaVu Sans, Noto Sans Arabic, FreeSerif), with the core X fonts (a build with --disable-xft, -misc-fixed and -arabic-newspaper, where both widgets draw the same two glyphs), and on Windows with Arial; the number of drawn pixels is the same in both widgets. I have no "TITUS Cyberbit Basic" font, so the report may have been specific to that font. | |||
Home
Timeline
Branches
Tags
Forum
Tickets
Download
Wiki