[PR #11487] Remove last remaining winrt::hstring allocation during text output #28610

Open
opened 2026-01-31 09:29:37 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/11487

State: closed
Merged: Yes


ControlCore::FontFaceName() is called 10/s by TSFInputControl.
The getter was modified to cache the STL string in a hstring allowing
us to return a value without temporary allocations during runtime.

PR Checklist

  • I work here
  • Tests added/passed

Validation Steps Performed

  • Font face and size changes properly update TSFInputControl ✔️
**Original Pull Request:** https://github.com/microsoft/terminal/pull/11487 **State:** closed **Merged:** Yes --- ControlCore::FontFaceName() is called 10/s by TSFInputControl. The getter was modified to cache the STL string in a hstring allowing us to return a value without temporary allocations during runtime. ## PR Checklist * [x] I work here * [x] Tests added/passed ## Validation Steps Performed * Font face and size changes properly update TSFInputControl ✔️
claunia added the pull-request label 2026-01-31 09:29:37 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#28610