[PR #9494] [CLOSED] Make font name comparison case-insensitive #27598

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/9494
Author: @eugenesmlv
Created: 3/14/2021
Status: Closed

Base: mainHead: load-font-warning


📝 Commits (2)

  • 18b745b Make font names comparison case insensitive
  • 6eaef1a Change string comparison

📊 Changes

1 file changed (+12 additions, -2 deletions)

View changed files

📝 src/cascadia/TerminalControl/TermControl.cpp (+12 -2)

📄 Description

Make font name comparison case-insensitive, so a warning message won't
be displayed when settings contain a font name with the wrong case.

Pros:

  • The warning message isn't shown.

Cons:

  • If one clicks the Save button on SUI, the fallback font will be
    applied. That happens because the selected font face in SUI is
    fallback font.

Should we also silently change the font face in the settings in that case?

Fixes #9360


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/microsoft/terminal/pull/9494 **Author:** [@eugenesmlv](https://github.com/eugenesmlv) **Created:** 3/14/2021 **Status:** ❌ Closed **Base:** `main` ← **Head:** `load-font-warning` --- ### 📝 Commits (2) - [`18b745b`](https://github.com/microsoft/terminal/commit/18b745bc2208a49c761f658a1e59120e352d2f59) Make font names comparison case insensitive - [`6eaef1a`](https://github.com/microsoft/terminal/commit/6eaef1a7edb820db1c3aa80a2b341befc73c85fd) Change string comparison ### 📊 Changes **1 file changed** (+12 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/TerminalControl/TermControl.cpp` (+12 -2) </details> ### 📄 Description Make font name comparison case-insensitive, so a warning message won't be displayed when settings contain a font name with the wrong case. Pros: * The warning message isn't shown. Cons: * If one clicks the `Save` button on SUI, the fallback font will be applied. That happens because the selected font face in SUI is fallback font. Should we also silently change the font face in the settings in that case? Fixes #9360 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-31 09:22:55 +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#27598