WSL icon indicating copy to clipboard operation
WSL copied to clipboard

Console Font Size Changes on vi and less

Open christoh opened this issue 10 years ago • 5 comments

I am using Consolas 14 on a 4k display. Whenever a curses based program is run, the font size changes from 14 to 15 automatically

christoh avatar Apr 08 '16 18:04 christoh

Investigating. A repro case would be most helpful.

bitcrazed avatar Apr 28 '16 20:04 bitcrazed

@christoh: I'm not seeing this behavior on a 4k secondary monitor with 144DPI (150%) with Consolas 14 in codepage 437.

Do you have the same monitor configuration and DPI? Resolution is one parameter, but DPI is another that becomes a problem with 4k displays.

Where do you see it reading out the change from font size 14 to 15? In the property sheet?

I've tried both vi and less against a text file full of lorem ipsum and I'm not seeing the font change.

Attaching more specific repro details +/- an animation of some sort so I can see what you're talking about would really help out here as nothing's popping out to me when I try it here.

miniksa avatar Apr 28 '16 22:04 miniksa

screenshot1 screenshot2

repro is rather simple:

  • set font to consolas 14 (first picture).
  • vi or less any file (probably happens with any program using (n)curses)
  • font size changes to 15 (second picture)

christoh avatar Apr 29 '16 21:04 christoh

Just upgraded from 14328 to 14332 and the problem is gone.

christoh avatar Apr 29 '16 22:04 christoh

@christoh Thanks for letting me know! Glad it's fixed for you. If it goes crazy again, let me know and I can dig a bit more.

miniksa avatar May 02 '16 15:05 miniksa