microsoft / microsoft/microsoft-ui-xaml

SemiBold font weight is thinner than Normal after update from 1.5 to 1.6

Open
#10,105 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area-TextBlocks bug team-Rendering
Dominant language
C++
Stars
8.4k
Forks
942
Avg merge
2d 7h
Merged PRs (30d)
105

Description

Describe the bug

When using SemiBold Font weight with e.g. Roboto font, the font is actually thinner than Normal font weight,
in 1.5 there was no issue with that
Roboto font version installed in the system (by default) : 1.00000; 2011

Steps to reproduce the bug
  1. Create an app with TextBlock as below:
<TextBlock FontWeight="SemiBold" FontFamily="Roboto" Text="Roboto SemiBold Size 16" FontSize="16" />
<TextBlock FontWeight="Normal" FontFamily="Roboto" Text="Roboto Normal Size 16" FontSize="16" />
  1. Check with version 1.5
  2. Update to version 1.6 - SemiBold text will be thinner
Expected behavior

SemiBold text for Roboto font should be bolder than normal font weight in version 1.6

Screenshots

Image

NuGet package version

WinUI 3 - Windows App SDK 1.6.1: 1.6.240923002

Windows version

Windows 11 (22H2): Build 22621

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 with the provided WinUI 3 TextBlock reproduction using Roboto, comparing Windows App SDK 1.5 with 1.6.1 on Windows 11. Trace the font-weight handling involved in TextBlock rendering and verify that SemiBold is visibly bolder than Normal without regressing the existing reproduction.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
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.