Skip to content

Font in WSL Console window changes to Raster Fonts when Running a powershell.exe command with Consolas font #367

Closed
@jay-tuckey

Description

@jay-tuckey

This was discovered from the issue here: microsoft/WSL#2050

The issue is that if I'm using WSL, and execute a command like powershell.exe -command 'Write-output hi' | cat the console font changes to Raster fonts and it resizes the console.

Windows version:

C:\>ver
Microsoft Windows [Version 10.0.17763.292]

Steps to reproduce

  1. Delete HKEY_CURRENT_USER\Console to reset console to all default settings
  2. Run ubuntu console. You should now have these font settings:
    image
  3. Execute powershell.exe -command 'Write-output hi' - no font change, and it correctly echo 'hi' to the command line:
    image
  4. Execute powershell.exe -command 'Write-output hi' | cat - font changes to Raster Fonts, and windows resizes to match new font:
    image
    image

Some notes on the behaviour that we discovered in the previous issue:

  • Doesn't occur in wsltty
  • Doesn't occur if you are using using Lucida Console as your font.
  • Confirmed to also occur on build 18329

Let me know if you need any further debugging or testing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-RenderingText rendering, emoji, complex glyph & font-fallback issuesIssue-BugIt either shouldn't be doing this or needs an investigation.Product-ConhostFor issues in the Console codebaseResolution-DuplicateThere's another issue on the tracker that's pretty much the same thing.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions