Description
After a .NET MAUI update (10.0.60), Image controls that use a FontImageSource and have Aspect="Center" with WidthRequest/HeightRequest set to the same value as FontImageSource.Size are no longer perfectly centered and are sometimes clipped/cut off.
With MAUI SR5 (10.0.50):
With MAUI SR6 (10.0.60):
The issue was introduced with the following PR: #30068
Steps to Reproduce
- Run the attached sample project on Windows.
- Notice that the font images are not centered.
Link to public reproduction project repository
https://github.com/telerik/ms-samples/tree/main/Maui/FontImageSourceImageNotCentered
Version with bug
10.0.60
Is this a regression from previous behavior?
Yes, this used to work in .NET MAUI
Last version that worked well
10.0.50
Affected platforms
Windows
Description
After a .NET MAUI update (10.0.60),
Imagecontrols that use aFontImageSourceand haveAspect="Center"withWidthRequest/HeightRequestset to the same value asFontImageSource.Sizeare no longer perfectly centered and are sometimes clipped/cut off.With MAUI SR5 (10.0.50):
With MAUI SR6 (10.0.60):
The issue was introduced with the following PR: #30068
Steps to Reproduce
Link to public reproduction project repository
https://github.com/telerik/ms-samples/tree/main/Maui/FontImageSourceImageNotCentered
Version with bug
10.0.60
Is this a regression from previous behavior?
Yes, this used to work in .NET MAUI
Last version that worked well
10.0.50
Affected platforms
Windows