Skip to content

Conversation

Copilot
Copy link
Contributor

@Copilot Copilot AI commented Sep 8, 2025

The text above the LightBulb preview was appearing blurry compared to text below due to using TextFormattingMode="Display" instead of TextFormattingMode="Ideal" in the PreviewPane.xaml file.

The issue was caused by the WPF TextOptions.TextFormattingMode being set to Display mode, which uses GDI-compatible font metrics that can result in blurry text rendering, especially on non-integer DPI scaling factors.

This change updates the PreviewPane to use Ideal mode instead, which uses ideal font metrics and provides better text clarity. According to Microsoft's WPF documentation:

  • Display mode: Uses GDI-compatible font metrics (can cause blurry text)
  • Ideal mode: Uses ideal font metrics (provides crisp text rendering)

The fix is a minimal one-line change that only affects text rendering quality without impacting any other functionality.

Fixes #80181.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copy link
Contributor Author

Copilot AI commented Sep 8, 2025

@CyrusNajmabadi 👋 This repository doesn't have Copilot instructions. With Copilot instructions, I can understand the repository better, work faster and produce higher quality PRs.

I can generate a .github/copilot-instructions.md file for you automatically. Click here to open a pre-filled issue and assign it to me. I'll write the instructions, and then tag you for review.

@Copilot Copilot AI changed the title [WIP] Blurry text above LightBulb preview Fix blurry text in LightBulb preview by changing TextFormattingMode to Ideal Sep 8, 2025
@Copilot Copilot AI requested a review from CyrusNajmabadi September 8, 2025 21:08
Copilot finished work on behalf of CyrusNajmabadi September 8, 2025 21:08
@CyrusNajmabadi CyrusNajmabadi marked this pull request as ready for review September 17, 2025 11:07
@CyrusNajmabadi CyrusNajmabadi requested a review from a team as a code owner September 17, 2025 11:07
@CyrusNajmabadi CyrusNajmabadi enabled auto-merge (rebase) September 17, 2025 11:07
@CyrusNajmabadi CyrusNajmabadi enabled auto-merge (squash) September 17, 2025 11:25
@CyrusNajmabadi CyrusNajmabadi enabled auto-merge (rebase) September 17, 2025 11:26
@CyrusNajmabadi CyrusNajmabadi merged commit c922b18 into main Sep 17, 2025
24 of 25 checks passed
@dotnet-policy-service dotnet-policy-service bot added this to the Next milestone Sep 17, 2025
@akhera99 akhera99 modified the milestones: Next, 18.0 P1, 18.0 P2 Sep 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Blurry text above LightBulb preview
4 participants