You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! We noticed that white text looks visually thicker than black text.
I compared the render in Avalonia (top) and WPF (bottom). WPF doesn't have this problem.
Average line color of text in avalonia ui: #9c9c9c, in wpf: #959595 (darker)
RenderOptions.TextRenderingMode="Antialias" does not solve the problem
Describe the bug
Hello! We noticed that white text looks visually thicker than black text.
I compared the render in Avalonia (top) and WPF (bottom). WPF doesn't have this problem.
Average line color of text in avalonia ui: #9c9c9c, in wpf: #959595 (darker)
RenderOptions.TextRenderingMode="Antialias" does not solve the problem
To Reproduce
Create a new project
<TextBlock Text="FontWeight=500 FontSize=16 FontFamily=Roboto" Foreground="White" FontWeight="500" FontSize="16" FontFamily="Roboto" Background="Black" Padding="20"/>
<TextBlock Text="FontWeight=500 FontSize=16 FontFamily=Roboto" Foreground="Black" FontWeight="500" FontSize="16" FontFamily="Roboto" Background="White" Padding="20"/>
*any font/size/weight
Expected behavior
Visually identical thickness of white and black text is expected
Avalonia version
11.2.1
OS
Windows
Additional context
We only tested it on Windows, but I assume it is also relevant for other operating systems
The text was updated successfully, but these errors were encountered: