wezterm icon indicating copy to clipboard operation
wezterm copied to clipboard

The UTF-8 "small" character variants (see enclosed table) are rendering with an extra monospace after them unnecessarily

Open pmarreck opened this issue 7 months ago • 1 comments

What Operating System(s) are you seeing this problem on?

macOS

Which Wayland compositor or X11 Window manager(s) are you using?

No response

WezTerm version

20250604-060157-5106c8c1

Did you try the latest nightly build to see if the issue is better (or worse!) than your current version?

Yes, and I updated the version box above to show the version of the nightly that I tried

Describe the bug

The following characters render with an extra space after them in wezterm despite being plenty small enough (it's right on the tin!) to be contained within a single monospace character width:

  • (U+FE57) Small Exclamation Mark
  • (U+FE69) Small Dollar Sign
  • (U+FE6A) Small Percent Sign
  • (U+FE60) Small Ampersand
  • (U+FE61) Small Asterisk
  • (U+FE62) Small Plus Sign
  • (U+FE63) Small Hyphen-Minus
  • (U+FE55) Small Colon
  • (U+FE54) Small Semicolon
  • (U+FE66) Small Equals Sign
  • (U+FE56) Small Question Mark
  • (U+FE6B) Small Commercial At

Note that these are only the ones I found; it's possible (likely) that ALL "small" variants render this way.

The space that is rendered is selectable but not copyable so it's not "real"; it's purely visual, but I'd prefer it not be there...

To Reproduce

bash> cat <<EOF
- '﹗' (U+FE57) Small Exclamation Mark
- '﹩' (U+FE69) Small Dollar Sign
- '﹪' (U+FE6A) Small Percent Sign
- '﹠' (U+FE60) Small Ampersand
- '﹡' (U+FE61) Small Asterisk
- '﹢' (U+FE62) Small Plus Sign
- '﹣' (U+FE63) Small Hyphen-Minus
- '﹕' (U+FE55) Small Colon
- '﹔' (U+FE54) Small Semicolon
- '﹦' (U+FE66) Small Equals Sign
- '﹖' (U+FE56) Small Question Mark
- '﹫' (U+FE6B) Small Commercial At
EOF

Observe the extra spaces in the visual output in wezterm.

Configuration

I don't think my config is relevant to this issue as it is purely rendering related

Expected Behavior

Small UTF8 character variants should only occupy 1 monospace width and not generate an extra nonexistent space after them

Logs

No response

Anything else?

No response

pmarreck avatar Jun 13 '25 19:06 pmarreck

Here is how it looks in my terminal:

Image

pmarreck avatar Jun 13 '25 19:06 pmarreck