Skip to content

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

Description

@michael-damatov

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions