Skip to content

Fix layout text rendering larger than v2 - #29

Closed
emosaru wants to merge 1 commit into
avaloniafrom
fix/issue-17-font-size
Closed

Fix layout text rendering larger than v2#29
emosaru wants to merge 1 commit into
avaloniafrom
fix/issue-17-font-size

Conversation

@emosaru

@emosaru emosaru commented Apr 11, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Fixes Either text or scaling seems to be rendering at larger rates #17
  • Avalonia's Fluent theme has a larger default font size than WPF's system default (12px). Without an explicit FontSize on the root LayoutControl, all text inside layout popouts inherits the theme default, making it appear larger than v2.
  • Adding FontSize="12" to the LayoutControl UserControl element anchors all descendant text to the WPF-equivalent size.

Test plan

  • Load CodeTracker, open any popout with text (e.g. the modal popup with ButtonPopup/scaling)
  • Verify text renders at the same size as v2

🤖 Generated with Claude Code

Fixes #17.

Avalonia's Fluent theme has a larger default font size than WPF's default.
Without an explicit FontSize on the root LayoutControl, all TextBlock and
Button label text inside layout popouts inherits the theme default, making
text appear larger than it did in v2. Anchoring to 12px (WPF system default)
restores the expected rendering.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@emosaru
emosaru requested a review from a team April 11, 2026 19:40
@emosaru

emosaru commented Apr 11, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by #26, which includes this same fix along with additional layout corrections (GroupBox panel, ClipToBounds, ArrayPanel orientation binding). Closing to avoid conflict on merge.

@emosaru emosaru closed this Apr 11, 2026
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