Tk Source Code

View Ticket
Login
Ticket UUID: 8560bc90d28deb473908107757a13e0076534016
Title: Some unicode characters are not antialised at text size < 12 in windows
Type: Bug Version: 8.7
Submitter: toledo Created on: 2022-04-22 16:30:16
Subsystem: 02. Appearance Assigned To: nobody
Priority: 5 Medium Severity: Important
Status: Closed Last Modified: 2026-09-18 07:29:17
Resolution: Wont Fix Closed By: oehhar
    Closed on: 2026-09-18 07:29:17
Description:
Higher unicode characters are not being antialiased when producing text in windows.

The following code

button .s10 -text "10 ↱↰ ⇓⁺₋áéñ" -font {"" 10} -command { exit }
pack .s10
button .s11 -text "11 ↱↰ ⇓⁺₋áéñ" -font {"" 11} -command { exit }
pack .s11
button .s12 -text "12 ↱↰ ⇓⁺₋áéñ" -font {"" 12} -command { exit }
pack .s12

Renders as per the following image

https://user-images.githubusercontent.com/7416902/164755323-b6472534-6b0e-42c2-90ef-846b1ad239b7.png

Where only with text size 12 and bigger the higher unicode characters are rendered properly.

I have tested it with wish 8.7a6, wish 8.5.19 and the tk version bundled with Python 3.10 for windows. It works properly on linux.

I'm developing a air traffic controller interface and it's unreadable without proper antialias, I'm afraid.
User Comments: oehhar added on 2026-09-18 07:29:17:

Hi Toledo,

thanks for the report. Please allow me to close the ticket. 8.7 development is stopped and 8.6 is end of life. Could you consider using Tcl/Tk 9.x? To my knowledge, it starts shipping with Python on many distributions now.

Thanks for all, Harald


serhiy.storchaka added on 2026-09-17 21:36:07:

Reproduced with 8.6.18 on Windows 11: the arrows are not in the default font, and the fallback font chosen is MS Gothic, whose embedded bitmaps (no antialiasing) are used below 12 pt. In Tk 9.1 the fallback search has a priority list starting with Segoe UI Symbol ([8ce823d20c], [b1ced740f6]), which renders them antialiased at all sizes, so this is fixed on main. On 8.6/9.0 the workaround is a font that contains the characters, e.g. -font {"Segoe UI Symbol" 10}.