[PR #9275] Represent font face as a combo box in SUI #27516

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

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

State: closed
Merged: Yes


Summary of the Pull Request

This replaces the Profiles > Font Face text box with a combo box.

References

#6800 - Settings UI Epic

Detailed Description of the Pull Request / Additional comments

  • Enumerating the fonts
    • This doc was the main reference used to enumerate the fonts. It was mildly adapted to use WinRT instead of WRL.
  • Updating the UI
    • Similar to other combo box settings, Profiles keeps a reference to the current value. We use that as a way to update the settings model. If an invalid value is used, we fallback to Cascadia Mono.
    • A checkbox was added to let the user select from all of the installed fonts, or just the monospace ones.

Demo

Font Face Combo Box Demo

**Original Pull Request:** https://github.com/microsoft/terminal/pull/9275 **State:** closed **Merged:** Yes --- ## Summary of the Pull Request This replaces the Profiles > Font Face text box with a combo box. ## References #6800 - Settings UI Epic ## Detailed Description of the Pull Request / Additional comments - Enumerating the fonts - [This doc](https://docs.microsoft.com/en-us/windows/win32/directwrite/font-enumeration) was the main reference used to enumerate the fonts. It was mildly adapted to use WinRT instead of WRL. - Updating the UI - Similar to other combo box settings, `Profiles` keeps a reference to the current value. We use that as a way to update the settings model. If an invalid value is used, we fallback to `Cascadia Mono`. - A checkbox was added to let the user select from all of the installed fonts, or just the monospace ones. ## Demo ![Font Face Combo Box Demo](https://user-images.githubusercontent.com/11050425/109342917-6cd3b600-7821-11eb-8df9-fb988b037e02.gif)
claunia added the pull-request label 2026-01-31 09:22:26 +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#27516