[WinUI] Image with FontImageSource is not displayed properly when using a custom font in an unpackaged app #19608
Labels
area-fonts
Custom fonts and Font related API's
area-image
Image loading, sources, caching
partner
Issue or Request from a partner team
platform/windows 🪟
t/bug
Something isn't working
Description
I have an Image with a FontImageSource, and the Glyph is not displayed properly when a custom font is used:
<Image x:Name="i3" WidthRequest="100" HeightRequest="100" Background="#33EE22AA">
<Image.Source>
<FontImageSource Glyph="" FontFamily="my_custom_font" />
Please see the repro project.
Note that this happens only in an unpackaged winui app:
None
Here is an image of what is shown:
And here is an image of what is expected:
Steps to Reproduce
Expected Behavior
The
Image
should display the glyph from the custom font, it should look like a little house.Actual Behavior
The
Image
does not display the glyph properly, just some rectangle is drawn.Link to public reproduction project repository
https://github.com/telerik/ms-samples/tree/main/Maui/FontImageSourceNotDisplayedInUnpackagedWinUIApp
Version with bug
8.0.3
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
Windows
Affected platform versions
No response
Did you find any workaround?
I did not find a workaround.
Relevant log output
No response
The text was updated successfully, but these errors were encountered: