Terminal font loaded at very small scale. #7260

Closed
opened 2026-01-31 00:59:22 +00:00 by claunia · 10 comments
Owner

Originally created by @kzhuangmc on GitHub (Apr 3, 2020).

Description of the new feature/enhancement

Feeling like the terminal row height could be reduced few pixels.
For comparison.
I have gnome terminal set up with font: Ubuntu Mono Regular, size 8
and windows terminal set up with font: Ubuntu Mono Regular: size 10.

First of all, despite these two terminals set with different font sizes, the font appears to be
the same viewing size. The different is windows terminal with size 10 is taller than gnome terminal with font-size 8.

Originally created by @kzhuangmc on GitHub (Apr 3, 2020). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING: 1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement. 2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement. 3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number). 4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement. 5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement. All good? Then proceed! --> # Description of the new feature/enhancement Feeling like the terminal row height could be reduced few pixels. For comparison. I have gnome terminal set up with font: Ubuntu Mono Regular, size 8 and windows terminal set up with font: Ubuntu Mono Regular: size 10. First of all, despite these two terminals set with different font sizes, the font appears to be the same viewing size. The different is windows terminal with size 10 is taller than gnome terminal with font-size 8. <!-- A clear and concise description of what the problem is that the new feature would solve. Describe why and how a user would use this new functionality (if applicable). --> <!-- A clear and concise description of what you want to happen. -->
claunia added the Issue-FeatureResolution-Duplicate labels 2026-01-31 00:59:22 +00:00
Author
Owner

@kzhuangmc commented on GitHub (Apr 3, 2020):

image

@kzhuangmc commented on GitHub (Apr 3, 2020): ![image](https://user-images.githubusercontent.com/44411075/78407747-5e056480-75ba-11ea-9e02-723b9b0a5ada.png)
Author
Owner

@DHowett-MSFT commented on GitHub (Apr 3, 2020):

Those are definitely different sizes.

Can you put gnome-terminal size 8 and Windows Terminal size 8 next to eachother? Then, can you do the same thing for size 10?

@DHowett-MSFT commented on GitHub (Apr 3, 2020): Those are definitely different sizes. Can you put gnome-terminal size 8 and Windows Terminal size 8 next to eachother? Then, can you do the same thing for size 10?
Author
Owner

@kzhuangmc commented on GitHub (Apr 4, 2020):

image

@kzhuangmc commented on GitHub (Apr 4, 2020): ![image](https://user-images.githubusercontent.com/44411075/78418724-e81def00-75f3-11ea-85f0-c1a5593f4427.png)
Author
Owner

@kzhuangmc commented on GitHub (Apr 4, 2020):

Per wikipedia, the font size 72 is roughly an inch. hence for size 8, it will be 1/9th of an inch.

So, I magnify the windows terminal size 8 to 900%, and measure is 7/8 inches. That missing 1/8th makes the difference.

image

@kzhuangmc commented on GitHub (Apr 4, 2020): Per wikipedia, the font size 72 is roughly an inch. hence for size 8, it will be 1/9th of an inch. So, I magnify the windows terminal size 8 to 900%, and measure is 7/8 inches. That missing 1/8th makes the difference. ![image](https://user-images.githubusercontent.com/44411075/78419059-92971180-75f6-11ea-815c-6f7d63ab3aa6.png)
Author
Owner

@DHowett-MSFT commented on GitHub (Apr 4, 2020):

Then I'll need to know what your DPI is in Windows and in X11, because I'm willing to bet that our font size math isn't egregiously incorrect 😄

@DHowett-MSFT commented on GitHub (Apr 4, 2020): Then I'll need to know what your DPI is in Windows and in X11, because I'm willing to bet that our font size math isn't egregiously incorrect :smile:
Author
Owner

@kzhuangmc commented on GitHub (Apr 4, 2020):

Well, how about side by side comparison between windows terminal vs Notepad?

image

@kzhuangmc commented on GitHub (Apr 4, 2020): Well, how about side by side comparison between windows terminal vs Notepad? ![image](https://user-images.githubusercontent.com/44411075/78419245-cb37ea80-75f8-11ea-8d69-6abad0c9c663.png)
Author
Owner

@DHowett-MSFT commented on GitHub (Apr 4, 2020):

Fair enough!

@DHowett-MSFT commented on GitHub (Apr 4, 2020): Fair enough!
Author
Owner

@parkovski commented on GitHub (Apr 7, 2020):

Worth noting that X11 uses 72 DPI by default and Windows uses 96 - could explain why saving screenshots that look the same size on the screen come out as different image sizes.

@parkovski commented on GitHub (Apr 7, 2020): Worth noting that X11 uses 72 DPI by default and Windows uses 96 - could explain why saving screenshots that look the same size on the screen come out as different image sizes.
Author
Owner

@DHowett-MSFT commented on GitHub (Apr 7, 2020):

This difference is likely to be caused by hinting. Different text rendering engines handle hinting differently.

If you compare a font that isn't hinted:

(terminal in the back, notepad in the front)

image

If I overlay them ...

image

... the only difference is the subpixel antialiasing artifacts on the edges.

I'm going to mark this one as a /dupe of #1790 (sub #5093) because we're using that issue to track configurable font rendering knobs.

@DHowett-MSFT commented on GitHub (Apr 7, 2020): This difference is likely to be caused by _hinting_. Different text rendering engines handle hinting differently. If you compare a font that isn't hinted: (terminal in the back, notepad in the front) ![image](https://user-images.githubusercontent.com/14316954/78702965-4a117980-78be-11ea-88b3-2fd7ff7b4957.png) If I overlay them ... ![image](https://user-images.githubusercontent.com/14316954/78703003-57c6ff00-78be-11ea-9139-4bd320b5d303.png) ... the only difference is the subpixel antialiasing artifacts on the edges. I'm going to mark this one as a /dupe of #1790 (sub #5093) because we're using that issue to track configurable font rendering knobs.
Author
Owner

@ghost commented on GitHub (Apr 7, 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 commented on GitHub (Apr 7, 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!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#7260