Skip to content

Wrong letter-spacing when rendering emot icons #5397

@luca-saggese

Description

@luca-saggese

When rendering the emoticons the terminal render it with negative letter-spacing, for example:

<div style="width: 2089px; height: 14px; line-height: 14px; overflow: hidden;">
<span style="letter-spacing: -7.775591px;">🎉</span>
<span style="letter-spacing: 1.005659px;"> </span>
<span style="background-color: rgb(77, 77, 77); letter-spacing: 1.005659px;" class="xterm-decoration-top">Welcome</span>
<span style="letter-spacing: 1.005659px;">, admin!</span>
</div>

I've fixed it with a work around css style

/* reset negative letter-spacing in  xterm */
.xterm .xterm-rows span[style*="letter-spacing:-"] {
  letter-spacing: 0 !important;
}

.xterm .xterm-rows span[style*="letter-spacing: -"] {
  letter-spacing: 0 !important;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions