Repository: microsoft/terminal (language: cpp)

Issue:
Paste from terminal to outlook comes out at really small font size
### Windows Terminal version

1.17.1023

### Windows build number

10.0.22621.1413

### Other Software

cmd

### Steps to reproduce

Configure terminal with Cascadia Mono font size 10, cut-n-paste some text from a command window to outlook. The text shows up in Cascadio Mono font size 5 instad.

### Expected Behavior

Text should paste with formatting in the same font size.

### Actual Behavior

Text pastes with formatting with much smaller font size.


Discussion / hints:
This sounds like a duplicate of #14762.

Fix patch:
diff --git a/src/cascadia/TerminalControl/ControlCore.cpp b/src/cascadia/TerminalControl/ControlCore.cpp
index 2f3d4e44a86..8f0f5921c7e 100644
--- a/src/cascadia/TerminalControl/ControlCore.cpp
+++ b/src/cascadia/TerminalControl/ControlCore.cpp
@@ -1104,7 +1104,7 @@ namespace winrt::Microsoft::Terminal::Control::implementation
         // content, which is unexpected.
         const auto htmlData = formats == nullptr || WI_IsFlagSet(formats.Value(), CopyFormat::HTML) ?
                                   TextBuffer::GenHTML(bufferData,
-                                                      _actualFont.GetUnscaledSize().width,
+                                                      _actualFont.GetUnscaledSize().height,
                                                       _actualFont.GetFaceName(),
                                                       bgColor) :
                                   "";


Test patch: