revert: keep grayscale antialiasing on editor text (#5539) by Jocs · Pull Request #5558 · marktext/marktext · GitHub
Skip to content

revert: keep grayscale antialiasing on editor text (#5539) - #5558

Merged
Jocs merged 1 commit into
developfrom
revert/keep-antialiased-5539
Sep 25, 2026
Merged

Jocs merged 1 commit into
developfrom
revert/keep-antialiased-5539

Conversation

@Jocs

@Jocs Jocs commented Sep 25, 2026

Copy link
Copy Markdown
Member

Reverts the second half of #5553. Refs #5539.

Restoring the platform default made text too heavy on macOS, which is where this was evaluated. There is no system subpixel antialiasing to gain back there — Core Graphics dropped it in Mojave — so auto only changes stem weight, and the lighter antialiased look is preferred.

The code block colour fix stays. That is what made the text legible, and it is independent of how glyphs are rasterised; the four theme colour assertions still pass. Only the spec's smoothing assertion goes, since it encoded the opposite decision.

What this leaves open

On Windows — which is almost certainly the reporter's platform — auto does restore LCD subpixel rendering, and antialiased throws it away. Their 0.19 screenshot's body text carries pixels like #5778a9, #90c9fa, #fae2ae: three channels varying independently around #575f66, the signature of subpixel coverage. On 0.20-rc.6 the same text is neutral grey (#7e8489, #c6c9cb). So their "0.20 看起来模糊" is not addressed by this PR, only their contrast complaint is.

If we want both, the declaration can be scoped so macOS keeps antialiased and the other platforms get auto. Happy to do that as a follow-up — say the word.

4 tests, all passing locally.

🤖 Generated with Claude Code

Reverts the second half of #5553. Restoring the platform default made text too
heavy on macOS, where there is no system subpixel antialiasing to gain back —
`auto` only changes stem weight there, and the maintainer prefers the lighter
look.

The code block colour fix is unaffected and stays: it is what made the text
legible, and it is independent of how glyphs are rasterised. Drop the spec's
smoothing assertion, which encoded the opposite decision.

This leaves the reporter's crispness complaint open on Windows, where `auto`
does restore LCD subpixel rendering. Scoping the declaration per platform is
the obvious follow-up if we want both.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@Jocs
Jocs merged commit d6ae9d9 into develop Sep 25, 2026
16 checks passed
@Jocs
Jocs deleted the revert/keep-antialiased-5539 branch September 25, 2026 03:56
@github-actions

Copy link
Copy Markdown
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant