terminal icon indicating copy to clipboard operation
terminal copied to clipboard

Pane delimiters in tmux disappear for certain fonts at small sizes

Open abrodkin opened this issue 4 years ago • 6 comments

Environment

[Environment]::OSVersion

Platform ServicePack Version      VersionString
-------- ----------- -------      -------------
 Win32NT             10.0.18363.0 Microsoft Windows NT 10.0.18363.0

Windows Terminal version: 1.6.10412.0

Ubuntu 20.040 in WSL2

Steps to reproduce

  1. Install "DejaVu Sans Mono for Powerline" font in the system (for example from https://github.com/powerline/fonts/tree/master/DejaVuSansMono), or non-Powerline original DejaVu (it behaves just the same as its Powerline derivative)
  2. Set it as a default font for Windows Terminal or just for WSL and of size 9 (that's the only size when issue manifests):
    "fontFace" : "DejaVu Sans Mono for Powerline",
    "fontSize" : 9,
    
  3. Start Ubuntu in WSL tab
  4. Start tmux
  5. Split window into vertical panes:
    Ctrl+B
    :split-window -v
    Enter
    

Expected behavior

Thin line between panes. image

The delimiter line (which is just a unicode symbol "─" (copy-pasted here from the terminal terminal) is displayed unless specified above combo of font & size are used.

I.e the following setup changes make the delimiter to appear:

  1. The same font, but sizes != 8 (screenshot above is with size = 10)
  2. Another font (tried "Cascadia Code PL", "Source Code Pro for Powerline", "Ubuntu Mono derivative Powerline", "Roboto Mono for Powerline")
  3. Display scaling of 150% (on 100 & 125% the issue still happens), thus on HiDPI displays with enabled by default scaling you won't see it.

Actual behavior

No visible line between panes: image

abrodkin avatar Feb 21 '21 09:02 abrodkin

Huh. Weird. This one must just get shrunk into oblivion with the stretching we're doing. @miniksa as an FYI of a bug I'm throwing on you for 2.0 ☺️

zadjii-msft avatar Feb 23 '21 16:02 zadjii-msft

Huh. Weird. This one must just get shrunk into oblivion with the stretching we're doing. @miniksa as an FYI of a bug I'm throwing on you for 2.0 ☺️

Gee thanks. :P

miniksa avatar Feb 23 '21 18:02 miniksa

Hi! I think I had the same problem just now. Hope this helps...

Disabled history, scrollbar and scroll to input (I don't need any of those when using tmux, at least in my setup) After that, the issue seems to be resolved.

EDIT: The issue is still there, just seems to happen less.

arielsalvo avatar Jun 08 '21 22:06 arielsalvo

I also have this issue, but only with settings as below:

image

image

image

When I change the size to smaller than 9 or bigger, then it's OK:

image

image

bitroniq avatar Dec 07 '21 12:12 bitroniq

Also seems to happen with Lucidia Console, 8pt, 100% DPI (see #13011). Might just have been fixed for the atlas engine in #13549

zadjii-msft avatar Aug 01 '22 18:08 zadjii-msft

I've been watching this since it was affecting me as well, and can confirm that this is fixed with the 1.16 preview release

(Incidentally, it uncovered a new text rendering issue, but I'll file that in a new bug) Font: Lucida Console, 10pt Before: (v1.14.2281.0) lucidaconsole_10pt_1 14

After: (v1.16.2523.0) lucidaconsole_10pt_1 16

fizz125 avatar Sep 14 '22 23:09 fizz125

I wonder if this got fixed in 1.18 Preview with the new renderer - I'd bet it did

zadjii-msft avatar Aug 23 '23 15:08 zadjii-msft

Oh I can't read, yea looks like the new renderer did fix this

zadjii-msft avatar Aug 23 '23 15:08 zadjii-msft