Skip to main content
edited title
Link
DarkBee
  • 14.5k
  • 9
  • 83
  • 132

Which is the default Fallback Font Used in WinUI 3 Whenfallback font used when FontFamily Is Invalidis invalid?

added 4 characters in body
Source Link
emoacht
  • 3.7k
  • 1
  • 16
  • 27

I’m working on an app that is delivered for both platform UWP and WinUI 3. In UWP, when I misspell or provide an invalid FontFamily, it seems to fall back to Segoe UI Variable. However, in WinUI 3, the fallback appears to be different and the Segoe UI Variable has different sizes in comparison to UWP.

In our UWP app, we explicitly set all TextBlock elements to use Segoe UI Variable, but when migrating to WinUI 3, we noticed that the "text box" size and layout appeared different. Interestingly, when we intentionally provide an invalid font family name in WinUI 3, the result visually matches what we had in UWP, suggesting that a different fallback font is being used compared to Segoe UI or Segoe UI Variable.

We tested various Segoe fonts (Segoe UI, Segoe UI Variable, Segoe UI Historic, etc.) but none of them visually matched the fallback font rendered when the FontFamily is invalid in WinUI 3.

Could you please clarify which font is used by default in WinUI 3 when an invalid or non-existent FontFamily is specified?

WinUI enter image description hereenter image description here

UWP enter image description hereenter image description here

WinUI enter image description hereenter image description here

UWP enter image description hereenter image description here

Thank you in advance!

I’m working on an app that is delivered for both platform UWP and WinUI 3. In UWP, when I misspell or provide an invalid FontFamily, it seems to fall back to Segoe UI Variable. However, in WinUI 3, the fallback appears to be different and the Segoe UI Variable has different sizes in comparison to UWP.

In our UWP app, we explicitly set all TextBlock elements to use Segoe UI Variable, but when migrating to WinUI 3, we noticed that the "text box" size and layout appeared different. Interestingly, when we intentionally provide an invalid font family name in WinUI 3, the result visually matches what we had in UWP, suggesting that a different fallback font is being used compared to Segoe UI or Segoe UI Variable.

We tested various Segoe fonts (Segoe UI, Segoe UI Variable, Segoe UI Historic, etc.) but none of them visually matched the fallback font rendered when the FontFamily is invalid in WinUI 3.

Could you please clarify which font is used by default in WinUI 3 when an invalid or non-existent FontFamily is specified?

WinUI enter image description here

UWP enter image description here

WinUI enter image description here

UWP enter image description here

Thank you in advance!

I’m working on an app that is delivered for both platform UWP and WinUI 3. In UWP, when I misspell or provide an invalid FontFamily, it seems to fall back to Segoe UI Variable. However, in WinUI 3, the fallback appears to be different and the Segoe UI Variable has different sizes in comparison to UWP.

In our UWP app, we explicitly set all TextBlock elements to use Segoe UI Variable, but when migrating to WinUI 3, we noticed that the "text box" size and layout appeared different. Interestingly, when we intentionally provide an invalid font family name in WinUI 3, the result visually matches what we had in UWP, suggesting that a different fallback font is being used compared to Segoe UI or Segoe UI Variable.

We tested various Segoe fonts (Segoe UI, Segoe UI Variable, Segoe UI Historic, etc.) but none of them visually matched the fallback font rendered when the FontFamily is invalid in WinUI 3.

Could you please clarify which font is used by default in WinUI 3 when an invalid or non-existent FontFamily is specified?

WinUI enter image description here

UWP enter image description here

WinUI enter image description here

UWP enter image description here

Thank you in advance!

Source Link

Which is the default Fallback Font Used in WinUI 3 When FontFamily Is Invalid

I’m working on an app that is delivered for both platform UWP and WinUI 3. In UWP, when I misspell or provide an invalid FontFamily, it seems to fall back to Segoe UI Variable. However, in WinUI 3, the fallback appears to be different and the Segoe UI Variable has different sizes in comparison to UWP.

In our UWP app, we explicitly set all TextBlock elements to use Segoe UI Variable, but when migrating to WinUI 3, we noticed that the "text box" size and layout appeared different. Interestingly, when we intentionally provide an invalid font family name in WinUI 3, the result visually matches what we had in UWP, suggesting that a different fallback font is being used compared to Segoe UI or Segoe UI Variable.

We tested various Segoe fonts (Segoe UI, Segoe UI Variable, Segoe UI Historic, etc.) but none of them visually matched the fallback font rendered when the FontFamily is invalid in WinUI 3.

Could you please clarify which font is used by default in WinUI 3 when an invalid or non-existent FontFamily is specified?

WinUI enter image description here

UWP enter image description here

WinUI enter image description here

UWP enter image description here

Thank you in advance!

created from staging ground