This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author steven.daprano
Recipients steven.daprano, terry.reedy
Date 2020-12-12.03:23:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1607743437.49.0.436417934565.issue42623@roundup.psfhosted.org>
In-reply-to
Content
The position of the caret assumes that every character in the string takes up the same width, measured in pixels. That is only true for monospaced fonts like Courier.

The only way to position the caret precisely with a proportional-width font is to compute the number of pixels for each character and then line up the caret at a position based on pixels rather than character columns. Unless Tkinter has functions to do both, it will probably be complicated and expensive, and I doubt anyone would care enough to do it.
History
Date User Action Args
2020-12-12 03:23:57steven.dapranosetrecipients: + steven.daprano, terry.reedy
2020-12-12 03:23:57steven.dapranosetmessageid: <1607743437.49.0.436417934565.issue42623@roundup.psfhosted.org>
2020-12-12 03:23:57steven.dapranolinkissue42623 messages
2020-12-12 03:23:57steven.dapranocreate