Repository: terminal
Issue: Font sizes in WT and conhost
Labels: Issue-Feature,Area-Rendering,Area-Fonts,Product-Terminal

### Windows Terminal version

1.16.2641.0

### Windows build number

10.0.19044.1889

### Other Software

_No response_

### Steps to reproduce

Apologies if this has already been discussed somewhere.

I prefer Consolas 20px. This is how it looks like in conhost:

![conhost_consolas_20px](https://user-images.githubusercontent.com/11453922/194710814-6a9b49ce-e87f-4b07-9e0d-fa02c65e6bba.png)
The cmd file used: [sample.cmd.txt](https://github.com/microsoft/terminal/files/9739383/sample.cmd.txt)

I would like to get the same experience in WT, so I go to settings, select Consolas, 20, and...

![wt_consolas_20pt](https://user-images.githubusercontent.com/11453922/194711021-2927cb72-3cf5-4df7-8603-be2df18a87cf.png)
Oh. Ok, it says "Size of the font in **points**", I should've paid attention.
Ok, let's google what points are and how they relate to pixels:

https://blog.gimm.io/difference-between-pixel-px-and-point-pt-font-sizes-in-email-signatures/
> A point (pt) is equal to 0.352778 millimeters, 0.0138889 inches, or 1.333 pixels.

https://graphicdesign.stackexchange.com/questions/199/point-vs-pixel-what-is-the-difference
> A px is therefore 0.75 pt

Ok, if one px is 0.75 pt, then 20 px is 15 pt, right?

![wt_consolas_15pt](https://user-images.githubusercontent.com/11453922/194711413-050faf38-00ad-434c-8fcb-e3ea7ffc3a0d.png)
No.

Well, apparently these are some other points then, but I'm getting tired and don't want to research it further. Let's try the scientific method.

10pt... No.
11pt... No.
12pt...

![wt_consolas_12pt](https://user-images.githubusercontent.com/11453922/194711527-4bea5851-c574-4bc2-99f0-8367bb4f4f22.png)

Close. Width is nearly perfect, but height is too small.

13pt...

![wt_consolas_13pt](https://user-images.githubusercontent.com/11453922/194711699-d9c45925-a8ca-45ad-8f64-22609ab5fb3d.png)

Now height is nearly perfect, but width is too big. What the...
Ok, the new WT [supports fractional font sizes](https://github.com/microsoft/terminal/releases/tag/v1.16.2641.0), so let's try that:
...
12.64pt...

![wt_consolas_12 64pt](https://user-images.githubusercontent.com/11453922/194711803-7e12191e-48af-4e93-aead-c7f13d6d8246.png)
Width is nearly perfect, height is nearly perfect, but... it's ugly. Too bold. With gaps.

No luck it seems. Let's try other apps just to check if it's possible.

Windows Notepad, 13pt:

![notepad_consolas_13pt](https://user-images.githubusercontent.com/11453922/194711938-67942d1e-9685-42f5-bda4-f875ffc38ba5.png)
A pixel-perfect match!

![comparison_notepad_conhost](https://user-images.githubusercontent.com/11453922/194712246-d2ef7d07-6827-4bde-8933-014fc600750f.png)

[ConEmu](https://github.com/Maximus5/ConEmu), 20px:

![conemu_consolas_20px](https://user-images.githubusercontent.com/11453922/194712266-bafe52fd-236b-4bdb-a9cc-198626821394.png)
Also a pixel-perfect match:

![comparison_conemu_notepad_conhost](https://user-images.githubusercontent.com/11453922/194712360-f2fa5363-06f8-4649-92b4-7f7ceead02ae.png)

So it is doable.


### Expected Behavior

I want to see exactly the same picture in WT I used to see in conhost for over a decade.
With all its flexibility, advanced renderers etc. I expect it to be trivially achievable, if not out of the box.

### Actual Behavior

No matter what I do, I cannot get the same results: the font is either too short or too wide, fractional sizes approximate it better, but the result is ugly. Meanwhile, in some other apps it just works.

---
P.S. I understand that fonts is a complex topic, vector curves not necessarily can perfectly fit into a pixel grid, there are different approximation methods etc., but I think there should be a way to get a familiar look & feel nevertheless.