Files
terminal-microsoft/doc
Leonard Hecker ff3fb7b423 Conhost font sizing for AtlasEngine (#19905)
This PR does 3 things:
* Provide a way to combine AtlasEngine's support for font sizes with
  GdiEngine's use of cell sizes (it doesn't support font sizes at all)
* Fix the DIP roundtrip issues in conhost due to float -> int casts
* Fix the roundtrip issues due to desired font -> actual font
  -> desired font feedback loops; it now uses the desired font
  permanently for settings, DPI changes, etc

Breaking changes:
* `GetCurrentConsoleFont(Ex)` now report the desired (configured)
  font settings instead of the actual ones. This better matches
  modern behavior with font fallback etc. I expect this to break
  some applications, although I cannot imagine why it would.
* TrueType fonts won't store a width value in the registry anymore

Totally works. Just trust me bro.

This PR doesn't yet include the logic to hook it up to Windows Terminal.
It's just for that new inbox conhost renderer. Huh what? Who said that!

## Validation Steps Performed
* Settings store X=0 for TrueType font sizes ⚠️ (intentional!)
* Ctrl+Scroll font sizing tracks GdiEngine relatively closely ✅
* Probably? Fixes all of the conhost font size roundtrip issues ✅
2026-10-30 00:45:03 +01:00
..
2020-11-13 09:45:08 -08:00
2021-10-25 06:16:30 -05:00
2022-01-21 18:24:06 +00:00
2021-06-14 10:06:01 -07:00