Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wslusc screws fonts #83

Closed
seb128 opened this issue Jul 11, 2019 · 12 comments

Comments

@seb128
Copy link

commented Jul 11, 2019

Using W10 r18932

Typing 'wslusc' on a WSL2/Ubuntu 18.04 uptodate instance leads to have the Ubuntu instance font changing/being screwed untill the app is restarted

@patrick330602

This comment has been minimized.

Copy link
Member

commented Jul 12, 2019

Hi,

Can you post your version of your wslu? you can check by wslusc --version. thank you!

@seb128

This comment has been minimized.

Copy link
Author

commented Jul 12, 2019

wslu v2.0.0: wlusc v28 (which is installed by default on the Ubuntu 18 image)

@rbalint

This comment has been minimized.

Copy link
Contributor

commented Jul 15, 2019

reproducible with current wslu master with the following steps:

bash ./configure.sh
make
PATH=$PATH:./out out/wslusc --help
@gdoenlen

This comment has been minimized.

Copy link

commented Jul 17, 2019

This happens with wslsys as well. The window gets smaller and fonts bolder.

 ~> wslsys --version
wslu v2.0.0; wslsys v28
@patrick330602

This comment has been minimized.

Copy link
Member

commented Jul 17, 2019

Thank you for all of your feedback. This is mostly related to the conhost.exe behavior, I still need some time trying to figure out the proper way to handle this behavior properly.

@shanselman

This comment has been minimized.

Copy link

commented Jul 17, 2019

What is WSLU doing that would upset conhost.exe? Poking around in the registry? Let me know and I'll route this to the right people.

@crramirez

This comment has been minimized.

Copy link
Contributor

commented Jul 17, 2019

Just calling powershell. This is a known issue when you invoke powershell from WSL

@patrick330602

This comment has been minimized.

Copy link
Member

commented Jul 17, 2019

@shanselman This is mostly suspected to be the problem of the powerhshell.exe as @crramirez mentioned. When executing powershell.exe in wslu, the settings from the console window for PowerShell will be brought to the current window, so I kind of suspecting this is in some level related to conhost.

@shanselman

This comment has been minimized.

Copy link

commented Jul 18, 2019

@craigaloewen @DHowett-MSFT @miniksa is this known? Folks here are saying this is a known messy thing but this is the first I've heard of it. Version specific? Display specific?

@DHowett-MSFT

This comment has been minimized.

Copy link

commented Jul 18, 2019

Powershell sets and resets the system codepage, which it shouldn't be doing. This can cause the fonts to reset to "raster fonts". This isn't something conhost can fix, as it will break compatibility with applications that need the codepage and font to match.

@patrick330602

This comment has been minimized.

Copy link
Member

commented Jul 28, 2019

Just figure out a dirty way to fix this problem(but it works, kind of), will be on next release
image

@patrick330602

This comment has been minimized.

Copy link
Member

commented Jul 28, 2019

the latest develop branch fixed this problem (at least on my computer and my Virtual Machine). Further testing is needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
7 participants
You can’t perform that action at this time.