The text layout code is expecting the quantity of glyphs is equal to the cells allocated for each line #4954

Open
opened 2026-01-31 00:01:30 +00:00 by claunia · 0 comments
Owner

Originally created by @reli-msft on GitHub (Nov 12, 2019).

The issue is found in CustomTextLayout:

Instead of carefully process the clusters input, CustomTextLayout drops nearly all the information from clusters, and only keeping how many columns a cluster occupy, and later it is expecting that the glyph quantity equals to the quantity of clusters. This may lead to incorrect rendering result for many cases (complex script, ligatures, etc.)

Bug #610, #696 may be caused by this.

Originally created by @reli-msft on GitHub (Nov 12, 2019). The issue is found in `CustomTextLayout`: Instead of carefully process the `clusters` input, `CustomTextLayout` drops nearly all the information from `clusters`, and only keeping how many columns a cluster occupy, and later it is expecting that the glyph quantity equals to the quantity of clusters. This may lead to incorrect rendering result for many cases (complex script, ligatures, etc.) Bug #610, #696 may be caused by this.
claunia added the Area-RenderingIssue-BugNeeds-Tag-FixProduct-TerminalPriority-1 labels 2026-01-31 00:01:30 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#4954