lepoco / lepoco/wpfui

Font size identical for Body and Caption FontTypographies

Open
#1,248 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
C#
Stars
9.6k
Forks
1k
PR merge metrics
No merged PRs in 30d

Description

Describe the bug

According to WPF UI gallery, the caption FontTypography is 12 sized while Body is 14 sized.
However they look identical and when measuring the pixels they are both identical in height.
Also, the size do not match WinUI3 equivalent typography. Attached is a screenshot of WPF UI gallery vs WinUI3 Gallery.
You can clearly see the size difference between caption and body types in WinUI3, while they look identical in WPF UI gallery.
Apologies if this was a stupid report, I am fairly new to WPF.

To Reproduce

Open WPF UI gallery app, navigate to typograpy section and measure font size in pixels. Compare to WinUI3 equivalent app.

Expected behavior

Different font size is noticeable between caption and body FontTypography.

Screenshots

image

OS version

Edition Windows 11 Enterprise
Version 21H2
OS build 22000.3260

.NET version

8

WPF-UI NuGet version

3.0.5

Additional context

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue in the WPF UI gallery app's typography section on .NET 8 and compare Caption and Body with the WinUI3 equivalent. Verify the measured pixel heights and identify where the FontTypography sizes are defined; done means Caption is visibly and measurably smaller than Body, matching the expected 12-versus-14 sizing.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
design, desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.