microsoft/Terminal

Add a setting to control vertical antialiasing

Open

#5,093 建立於 2020年3月23日

在 GitHub 查看
 (3 留言) (3 反應) (0 負責人)C++ (3,212 fork)batch import
Area-RenderingHelp WantedIssue-TaskProduct-Terminal

倉庫指標

Star
 (35,764 star)
PR 合併指標
 (平均合併 27天 19小時) (30 天內合併 24 個 PR)

描述

Description of the new feature/enhancement

Adding a setting to control DirectWrite's rendering mode is wanted to improve font rendering quality when using a font that does not have hinting information.

I prefer NasuM font (https://osdn.net/users/itouhiro/pf/font/files/) because it has high readability. But it does not have hinting information and it causes decrasing rendering quality in Windows Terminal.

Below is a screenshot that taken from Windows Terminal with using NasuM font: Terminal

Below is a screenshot that taken from WSL window with using NasuM font: WSL

Please focus on horizontal lines in the Kanji character "見".

Windows's legacy command window uses GDI and now it supports vertical antialiasing (I believe), but Windows Terminal does not support that.

If Windows Terminal has a setting to enable vertical antialiasing, it can improve font rendering quality at this situation.

Proposed technical implementation details (optional)

Firefox has a hidden setting to control DirectWrite's rendering mode (https://support.mozilla.org/en-US/questions/1115938). When gfx.font_rendering.cleartype_params.rendering_mode is 5 (Natural Symmetric), Firefox enables vertical antialiasing.

If Windows Terminal has similar one, it would solve this problem.

貢獻者指南