[PR #4711] [MERGED] Add support for cleartype text antialiasing #25894

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/4711
Author: @zadjii-msft
Created: 2/24/2020
Status: Merged
Merged: 2/25/2020
Merged by: @undefined

Base: masterHead: dev/migrie/f/1298-AA-setting


📝 Commits (4)

📊 Changes

11 files changed (+147 additions, -7 deletions)

View changed files

📝 doc/cascadia/SettingsSchema.md (+1 -0)
📝 doc/cascadia/profiles.schema.json (+10 -0)
📝 src/cascadia/TerminalApp/Profile.cpp (+64 -3)
📝 src/cascadia/TerminalApp/Profile.h (+5 -0)
📝 src/cascadia/TerminalApp/defaults.json (+4 -2)
📝 src/cascadia/TerminalControl/TermControl.cpp (+16 -0)
📝 src/cascadia/TerminalSettings/IControlSettings.idl (+9 -0)
📝 src/cascadia/TerminalSettings/TerminalSettings.cpp (+13 -1)
📝 src/cascadia/TerminalSettings/terminalsettings.h (+5 -0)
📝 src/renderer/dx/DxRenderer.cpp (+17 -1)
📝 src/renderer/dx/DxRenderer.hpp (+3 -0)

📄 Description

Summary of the Pull Request

I needed to do something to keep sane so today I day of learned about antialiasing. This PR adds the ability to specify the "antialiasingMode" as a setting.

  • "antialiasingMode": "grayscale": the current behavior, D2D1_TEXT_ANTIALIAS_MODE_GRAYSCALE
  • "antialiasingMode": "cleartype": use D2D1_TEXT_ANTIALIAS_MODE_CLEARTYPE instead

PR Checklist

Detailed Description of the Pull Request / Additional comments

Grayscale:

image

Cleartype:
image

Side-by-side (can you tell which is which?)

image


🔄 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/4711 **Author:** [@zadjii-msft](https://github.com/zadjii-msft) **Created:** 2/24/2020 **Status:** ✅ Merged **Merged:** 2/25/2020 **Merged by:** [@undefined](undefined) **Base:** `master` ← **Head:** `dev/migrie/f/1298-AA-setting` --- ### 📝 Commits (4) - [`05330b4`](https://github.com/microsoft/terminal/commit/05330b4f8fb1f2f90f1e64795b333efa7548f25b) Literally do all of #1298 - [`ee13fcc`](https://github.com/microsoft/terminal/commit/ee13fcc0d350867ec7a792d9290dac5b0db0736a) Update the docs as well, I'm not a barbarian. - [`0006677`](https://github.com/microsoft/terminal/commit/0006677bc248cb4a0713b24f2885075e8bed264b) butwhy.gif - [`dc0f916`](https://github.com/microsoft/terminal/commit/dc0f916b2cc91a80e3129caef05b3ba5519cd516) update the comment ### 📊 Changes **11 files changed** (+147 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `doc/cascadia/SettingsSchema.md` (+1 -0) 📝 `doc/cascadia/profiles.schema.json` (+10 -0) 📝 `src/cascadia/TerminalApp/Profile.cpp` (+64 -3) 📝 `src/cascadia/TerminalApp/Profile.h` (+5 -0) 📝 `src/cascadia/TerminalApp/defaults.json` (+4 -2) 📝 `src/cascadia/TerminalControl/TermControl.cpp` (+16 -0) 📝 `src/cascadia/TerminalSettings/IControlSettings.idl` (+9 -0) 📝 `src/cascadia/TerminalSettings/TerminalSettings.cpp` (+13 -1) 📝 `src/cascadia/TerminalSettings/terminalsettings.h` (+5 -0) 📝 `src/renderer/dx/DxRenderer.cpp` (+17 -1) 📝 `src/renderer/dx/DxRenderer.hpp` (+3 -0) </details> ### 📄 Description ## Summary of the Pull Request I needed to do something to keep sane so today I day of learned about antialiasing. This PR adds the ability to specify the `"antialiasingMode"` as a setting. * "antialiasingMode": "grayscale": the current behavior, `D2D1_TEXT_ANTIALIAS_MODE_GRAYSCALE` * "antialiasingMode": "cleartype": use `D2D1_TEXT_ANTIALIAS_MODE_CLEARTYPE` instead ## PR Checklist * [x] Closes #1298 * [x] I work here * [ ] I didn't add tests * [x] Requires documentation to be updated ## Detailed Description of the Pull Request / Additional comments Grayscale: ![image](https://user-images.githubusercontent.com/18356694/75173847-2373f680-56f5-11ea-8896-c1cf04c61d41.png) Cleartype: ![image](https://user-images.githubusercontent.com/18356694/75173854-25d65080-56f5-11ea-9de1-e2d1c343cae5.png) Side-by-side (can you tell which is which?) <!-- grayscale, cleartype --> ![image](https://user-images.githubusercontent.com/18356694/75173864-28d14100-56f5-11ea-8bdd-d47a60fbbe4d.png) --- <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:12:29 +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#25894