Skip to content

Some grapheme clusters gain a lot of extra padding after being highlighted #1752

@j4james

Description

@j4james

Contour Terminal version

0.6.1.7494

Installer source

GitHub: Release page attachment

Operating System

Ubuntu Linux 24.04.1

Architecture

x86-64 / amd64

Other Software

No response

Steps to reproduce

Execute the following statements from a bash shell:

printf "[\U1f44d\U1f3fb]\n"
printf "[\U1f3f3\Ufe0f\U200d\U1f308]\n"
printf "[\U1f441\Ufe0f]\n"

Note the width of each glyph between the [] brackets.

Now use the mouse to highlight all of the text on the page and note what happens to the [] brackets surrounding those glyphs.

Expected Behavior

Both before and after highlighting the text, I'd expect the glyphs to take up two columns, looking like this:

Image

Actual Behavior

After highlighting the text, some of the glyphs appear to gain extra padding to the right, pushing the ] angle bracket across by 12 columns.

Image

Additional notes

I haven't tried to determine what exactly triggers the issue, but I'll note that the two cases that failed both used a VS16 modifier (U+FE0F).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingfontsfont rasterization and text shaping API and platform implementationsfrontendContour Terminal Emulator (GUI frontend)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions