Skip to content

[Windows] Image with FontImageSource is not centered and gets clipped when WidthRequest/HeightRequest equals FontImageSource Size #35618

Description

@APopatanasov

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):

Image

With MAUI SR6 (10.0.60):

Image

The issue was introduced with the following PR: #30068

Steps to Reproduce

  1. Run the attached sample project on Windows.
  2. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-controls-imageImage controli/regressionThis issue described a confirmed regression on a currently supported versionpartnerIssue or Request from a partner teamplatform/windowsregressed-in-10.0.60s/triagedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions