Improve text rendering clarity in Avalonia UI compared to previous WPF frontend

未关闭
#3,985 8 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
45/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
冷清
技术栈
csharp

调研方向

首先,在所报告的 Windows 缩放和显示器设置下,复现基于 Avalonia 的 ILSpy 11.x 前端与基于 WPF 的 ILSpy 10.x 前端之间的差异。调查提到的 Avalonia 渲染管线相关领域,包括文本微调、像素对齐、分数缩放、字体设置和渲染后端选项;当文本明显更清晰且未引入 UI 回归时,即视为完成。

由索引模型根据 Issue 内容生成。

描述

Description

After the migration from the WPF frontend to Avalonia in ILSpy 11, text appears noticeably less sharp on my system compared to previous ILSpy versions.

This is not a syntax-highlighting or color-contrast issue. The concern is the actual text rendering quality, which appears softer/blurrier than the WPF-based releases.

Environment

  • ILSpy version: 11.0.0.9375+cdeae656fee6e184ff76cdc549edc7f9031dba09
  • OS: Windows 11 25H2
  • Monitor 1
    • Display resolution: 5120 x 1440
    • Windows scaling: 100%
  • Monitor 2
    • Display resolution: 3654 x 2160
    • Windows scaling: 200%

Observed Behavior

  • Decompiled code text appears less crisp than in ILSpy 10.x.
  • Tree view and UI text may also appear softer.
  • The effect is most noticeable during extended reading sessions.

Expected Behavior

Text rendering should be as sharp and readable as possible, ideally matching the clarity previously achieved by the WPF frontend.

Additional Information

The issue may be related to differences between WPF's ClearType-based text rendering and Avalonia's rendering pipeline.

Potential areas worth investigating:

  • Text hinting configuration
  • Pixel snapping/layout rounding
  • Fractional scaling behavior
  • Font rendering settings
  • Avalonia rendering backend options

Comparison

A side-by-side comparison between:

  • ILSpy 11.x (Avalonia)
    Image

  • ILSpy 10.x (WPF)
    Image

on the same machine shows a visible difference in text clarity.

主要语言
C#
星标
27.1k
派生
3.8k
平均合并
1 天 23 小时
30 天内合并 PR
44

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

icsharpcode/ILSpy 的其他 Issue

查看 icsharpcode/ILSpy 的全部 Issue

相似的 Issue

更多 C# Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。