Skip to content

text run segmentation problems #395

@christianparpart

Description

@christianparpart

Example screenshot:

image

Reproduction snippet:

echo -e "\e[31mabc\e[32m...\e[m\nabc...\n"

Text run segmentation properties:

image

Notes

Text run egmenation should happen based

  • SGR attributes
  • word delimitation (whitespace)
  • script property
  • emoji presentation property

A single text sub run contains has each of these properties fixed for a sequence of codepoints.

So in theory for the above example "abc..." should be one single sub-run (because "Common" script will be merged into "Latin" script)

Also, I could not find another case that has similar issues to this. It seems to only affect this case (AFAICT) with some text followed by the "..."-ligature using "JetBrainsMono" (or Fira Code, others?).

Maybe first validate if that holds true for the above reproducible case by looking at the debug output for debug tags font.*

Metadata

Metadata

Assignees

No one assigned

    Labels

    VT: rasterizerRendering of the terminal into a pixmap using `terminal_renderer` librarybugSomething isn't workingfontsfont rasterization and text shaping API and platform implementations

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions