[PR #10433] Group font options in the json into a single object #28053

Closed
opened 2026-01-31 09:25:59 +00:00 by claunia · 0 comments
Owner

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

State: closed
Merged: Yes


Summary of the Pull Request

Introduces FontConfig, an object that isolates font-related settings in our profiles

Users can now define font settings in their json as so:

"font":{
    "face": "Consolas",
    "size": 12
}

Backwards compatible with the currently expected way of defining font settings in the json, note however that upon hitting 'Save' in the SUI, these settings will be rewritten to the font-object style in the json (as above).

References

#1790

PR Checklist

  • Closes #6049
  • CLA signed. If not, go over here and sign the CLA
  • Tests added/passed
  • Documentation updated. If checked, please file a pull request on our docs repo and link it here: #xxx
  • Schema updated.
  • I work here

Validation Steps Performed

Existing functionality works, new functionality works

**Original Pull Request:** https://github.com/microsoft/terminal/pull/10433 **State:** closed **Merged:** Yes --- <!-- Enter a brief description/summary of your PR here. What does it fix/what does it change/how was it tested (even manually, if necessary)? --> ## Summary of the Pull Request Introduces `FontConfig`, an object that isolates font-related settings in our profiles Users can now define font settings in their json as so: ``` "font":{ "face": "Consolas", "size": 12 } ``` Backwards compatible with the currently expected way of defining font settings in the json, note however that upon hitting 'Save' in the SUI, these settings **will be rewritten to the font-object style in the json (as above)**. <!-- Other than the issue solved, is this relevant to any other issues/existing PRs? --> ## References #1790 <!-- Please review the items on the PR checklist before submitting--> ## PR Checklist * [x] Closes [#6049](https://github.com/microsoft/terminal/issues/6049) * [x] CLA signed. If not, go over [here](https://cla.opensource.microsoft.com/microsoft/Terminal) and sign the CLA * [x] Tests added/passed * [ ] Documentation updated. If checked, please file a pull request on [our docs repo](https://github.com/MicrosoftDocs/terminal) and link it here: #xxx * [ ] Schema updated. * [x] I work here <!-- Describe how you validated the behavior. Add automated tests wherever possible, but list manual validation steps taken as well --> ## Validation Steps Performed Existing functionality works, new functionality works
claunia added the pull-request label 2026-01-31 09:25:59 +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#28053