-
Notifications
You must be signed in to change notification settings - Fork 8.5k
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
Font size does not match the settings in default Powershell #6797
Comments
The traditional win32 console host measures fonts in pixel sizes. Unfortunately, we're not going to be changing either system to align with the other. The one the console host used was old and wrong and bad, and the one WT uses is in line with all other applications. |
Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report! |
@DHowett are you sure about that? Looks to me Terminal font size are a lot bigger than they should be. For example here's the Cascadia Mono PL at the same font size on: Both apps have the same default zoom level. |
@SharakPL I am pretty sure 😄 I have overlaid a transparent Terminal window on top of Notepad and Chromium displaying the same font size. It appears as though VS Code is the odd one out. Did you specify the font size in points? |
Terminal doesn't specify the unit. I suspect it's in points and that's why it's much bigger. VSCode uses pixels. |
Indeed, that's the central thesis of this issue :) Terminal specifies font size in points, as do most text editors, terminals, web browsers and IDEs. The traditional windows console used pixels (really "device independent pixels", which were scaled for the display's scaling factor.) |
Really? I would say points are good only for printers and designs made only to be printed, but for anything else that's supposed to be displayed on the screen (including editors, terminals and especially browsers) pixels should be used. |
Description of the new feature/enhancement
My laptop has a 15.6" 1920px1080p display.
I'm using font Consolas at size 16 in the default PowerShell and that has been the perfect size for my use.
But Windows Terminal font size does not match PowerShell. So I'm using font Consolas at size 11 in WT. Which is a bit bigger than Consolas at size 16 in default PowerShell and size 10 is a little too small.
This is the only reason I keep switching to default PowerShell. Some terminal outputs don't fit like they should in WT on font Consolas at size 11 and size 10 is too small to read. In my specific case, the command is
docker ps -a
.Proposed technical implementation details
I propose using the same font sizes as in the default PowerShell. Might be easier to implement than writing a new sizing scheme.
The text was updated successfully, but these errors were encountered: