Remove implicit scaling to improve performance and crispness of High DPI text #7365

Closed
opened 2026-01-31 01:02:02 +00:00 by claunia · 1 comment
Owner

Originally created by @miniksa on GitHub (Apr 10, 2020).

Originally assigned to: @miniksa on GitHub.

In high DPI, we have to disable differential drawing.
This is because the text is drawn at fractional pixel heights and baselines automatically as we're scaling the entire d2d render target. The fractional drawing is also making it look a little bit off for High DPI customers.

So doing the work of removing the implicit scaling and installing our own transforms on the origins and sizes of the five things we draw should resolve this issue:

  1. Clear background rectangles
  2. The cursor
  3. Selection rectangles
  4. The background color behind text
  5. Text runs
Originally created by @miniksa on GitHub (Apr 10, 2020). Originally assigned to: @miniksa on GitHub. In high DPI, we have to disable differential drawing. This is because the text is drawn at fractional pixel heights and baselines automatically as we're scaling the entire d2d render target. The fractional drawing is also making it look a little bit off for High DPI customers. So doing the work of removing the implicit scaling and installing our own transforms on the origins and sizes of the five things we draw should resolve this issue: 1. Clear background rectangles 2. The cursor 3. Selection rectangles 4. The background color behind text 5. Text runs
Author
Owner

@ghost commented on GitHub (May 5, 2020):

:tada:This issue was addressed in #5345, which has now been successfully released as Windows Terminal Release Candidate v0.11.1251.0 (1.0rc1).🎉

Handy links:

@ghost commented on GitHub (May 5, 2020): :tada:This issue was addressed in #5345, which has now been successfully released as `Windows Terminal Release Candidate v0.11.1251.0 (1.0rc1)`.:tada: Handy links: * [Release Notes](https://github.com/microsoft/terminal/releases/tag/v0.11.1251.0 (1.0rc1)) * [Store Download](https://www.microsoft.com/store/apps/9n0dx20hk701?cid=storebadge&ocid=badge)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#7365