mirror of
https://github.com/microsoft/terminal.git
synced 2026-11-16 09:10:27 +00:00
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 ✅