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

Minor artifacts on characters when using custom display scaling (like 130%) #4591

Open
vasily-codefresh opened this issue Feb 14, 2020 · 17 comments
Labels
Area-Fonts Related to the font Area-Rendering Text rendering, emoji, complex glyph & font-fallback issues Issue-Bug It either shouldn't be doing this or needs an investigation. Priority-3 A description (P3) Product-Terminal The new Windows Terminal.
Milestone

Comments

@vasily-codefresh
Copy link

Environment

Windows build number: [run `[Environment]::OSVersion` for powershell, or `ver` for cmd]
Windows Terminal version (if applicable):

Any other software?

Microsoft Windows NT 10.0.18362.0
Windows Terminal (Preview)
Version: 0.9.433.0

Steps to reproduce

  • set display scaling to some custom setting. I use 130%
  • launch Windows Terminal

Expected behavior

fonts are scaled together with the rest of the system

Actual behavior

fonts are scaled weirdly with wrong size and visible artefacts

compare those screenshots.

  1. regular Windows console using Consolas 16pt. everything's fine here

  1. Windows Terminal using Consolas 16pt. somehow this 16pt is much larger

  1. Windows Terminal using Consolas 11 pt (almost matches size in Windows console). notice broken fonts

font rendering has visible artifacts on almost all letters, very notable on щ, й, з, б, р, ч and even English a and e. the screenshot is a lossless PNG, that's how Windows Terminal display those in real life.

@ghost ghost added Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Needs-Tag-Fix Doesn't match tag requirements labels Feb 14, 2020
@j4james
Copy link
Collaborator

j4james commented Feb 15, 2020

Note that the old console measures font sizes in pixels, not points (see issue #142). So that's why the sizes are so different.

I'm not sure about the font rendering artifacts - even zoomed in they look almost identical to me - but I'm probably just not a good judge of quality. Also there are definitely jpeg rendering artifacts. Your original image may have been a lossless PNG, but the github-hosted images are JPEG.

@vasily-codefresh
Copy link
Author

vasily-codefresh commented Feb 15, 2020

@j4james good catch. please see original uncompressed PNG

there a lot of artifacts. for example see the second line, first о in Корпорация
or the first a in aka.ms on next line.

@j4james
Copy link
Collaborator

j4james commented Feb 15, 2020

The new image still seems to be a jpeg, but now that I know where to look, I can definitely see what you mean about the artifacts. I wonder if it might be related to your graphics driver. I believe the old console uses GDI for rendering, while the new Windows Terminal uses DirectX, which would explain why you only see the issue in WT. That's just a wild guess though.

@vasily-codefresh
Copy link
Author

dxgiag sees no problems.

you can try to reproduce this by setting custom scaling on Windows at 130% and rebooting.

@zadjii-msft zadjii-msft added Priority-3 A description (P3) Product-Terminal The new Windows Terminal. Area-Rendering Text rendering, emoji, complex glyph & font-fallback issues labels Feb 18, 2020
@DHowett-MSFT
Copy link
Contributor

I believe this is a /dupe of #4367. Agree?

@ghost
Copy link

ghost commented Feb 18, 2020

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!

@ghost ghost closed this as completed Feb 18, 2020
@ghost ghost added Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing. and removed Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Needs-Tag-Fix Doesn't match tag requirements labels Feb 18, 2020
@j4james
Copy link
Collaborator

j4james commented Feb 18, 2020

@DHowett-MSFT Just to be clear, it's not a problem with the character heights - there are little rendering glitches to the right of some of the letters. I don't know if that makes it different from #4367 or not.

If you zoom in, it becomes more obvious where the problems are. For example, look at the little bump on the side of the second 'o' in 'Corporation' compared to the first 'o'.

image

I haven't been able to reproduce it myself though.

@DHowett-MSFT
Copy link
Contributor

huh

@zadjii-msft zadjii-msft reopened this Feb 18, 2020
@zadjii-msft zadjii-msft added Area-Fonts Related to the font and removed Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing. labels Feb 18, 2020
@ghost ghost added the Needs-Tag-Fix Doesn't match tag requirements label Feb 18, 2020
@zadjii-msft zadjii-msft added this to the Terminal v1.0 milestone Feb 18, 2020
@cinnamon-msft cinnamon-msft added Issue-Bug It either shouldn't be doing this or needs an investigation. Priority-2 A description (P2) v1-Scrubbed and removed Priority-3 A description (P3) labels Feb 28, 2020
@ghost ghost removed the Needs-Tag-Fix Doesn't match tag requirements label Feb 28, 2020
@zadjii-msft zadjii-msft changed the title font scaling/rendering terribily broken Minor artifacts on characters when using custom display scaling (like 130%) Apr 10, 2020
@zadjii-msft zadjii-msft self-assigned this Apr 10, 2020
@zadjii-msft
Copy link
Member

zadjii-msft commented Apr 10, 2020

I definitely see a repro of this with 130% scaling, font size 9, grayscale or cleartype AA, "Fira Code" as my font. Also repros at size 9 with "Hack" and "Cascadia Code"

When it repros for me, it's happening in the following columns:

Microsoft Windows [Version 10.0.19604.1002]
(c) 2020 Microsoft Corporation. All rights reserved.
                                            
migrie@MIGRIE-SLAPTOP>oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo
oooooooooooooooooooooooooooooooooooooooooooooo
      ^             ^             ^               
      7             21            35

It's not always a left-right artifact though. Sometimes it definitely does something weird in the y direction, making some parts of characters look too wide. It kinda looks like an anti-aliasing artifact

@LinoBarreca
Copy link

Until I had this problem i underestimated the importance of a clean font rendering. The problem is so bad on my side that I can not concentrate when using the terminal...and i swear i don't suffer from OCD. The glitches are not minor. The lines are deformed both in height and width. For sample pictures look at #8533 (sorry for the duplicate, i searched for it and i found only a bug in which they were referring to a problem with intel cards and acceleration but that wasn't my case)

@adhadse
Copy link

adhadse commented Sep 9, 2021

Found same issue happening on Windows Terminal window for Ubuntu at font 12, 'JetBrains Mono' on Version: 1.9.1942.0.

My screen scaling is set to 110%. Any type of anti-aliasing other than default "Grayscale" gets even worse.

Check the ticked text and compare that to usual text:

  • Like the two 'n' ticked in blue
  • The two 'i' ticked in yellow
  • The two '5' ticked in maroon.
    image

@kXborg
Copy link

kXborg commented Nov 4, 2021

I don't know how you guys are closing the issue. I don't see any proper fixes.
Setting display scaling back to default 100% does improve the rendering a little but this too is not very good. Take a look at the screenshot below. Left side is of Terminal and Right side is of Default Powershell. Both are using same text and scale. Please provide fixes. The texts are not beautiful at all (in Terminal).
Terminal-Powershell

@kXborg
Copy link

kXborg commented Nov 4, 2021

This is the zoomed view. Zooming out makes me feel like I am using a 640x480 pixel display.

@zadjii-msft
Copy link
Member

I don't know how you guys are closing the issue. I don't see any proper fixes.

We're not? I'm simply combining threads reporting the same issue to a single thread, for easy tracking. Custom display scaling sizes, like 130%, or 118% cause a LOT of visual artifacts, that we're using this thread to track resolving.

@kXborg From the settings you sent me in #11679, you have text antialiasing turned off:

{
    "altGrAliasing": true,
    "antialiasingMode": "aliased",
    "colorScheme": "Campbell Powershell",
    "commandline": "powershell.exe",
    "font": 
    {
        "face": "Courier New"
    },
    "guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
    "hidden": false,
    "name": "Windows PowerShell"
},

Getting rid of the "antialiasingMode": "aliased", will probably help you.

@kXborg
Copy link

kXborg commented Nov 5, 2021

@zadjii-msft,
Hi, it fixed the issue. Thanks a lot, Mike

@michaelbing3shape
Copy link

I would like to vote for this to be fixed. It looks awful even with grayscale AA. Regular PowerShell looks fine. 110% scaling. I don't have problems with any other apps.

image
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Fonts Related to the font Area-Rendering Text rendering, emoji, complex glyph & font-fallback issues Issue-Bug It either shouldn't be doing this or needs an investigation. Priority-3 A description (P3) Product-Terminal The new Windows Terminal.
Projects
None yet
Development

No branches or pull requests

10 participants