New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CanvasTextFormat throws in Unpackaged apps #941
Comments
This issue came up in our case of rendering text to a bitmap: dotnet/maui#15802 |
Facing the same issue here as well: |
I have a .NET MAUI app where this issue is causing button icons to break in the unpackaged WinUI version of the app. There doesn't appear to be any workarounds with handlers which is disappointing. The only workaround would be to not use font icons at all and use .svgs which I'm hesitant to do specifically for WinUI unpackaged only. Would it be possible to have a fix for this issue prioritised, please? |
Agreed. this should be a priority issue for Win2D as it is a blocker for other downstream issues. |
Facing the same issue. Is there an ETA for this fix from Microsoft? @mattleibow thanks for open this issue 😊 |
Hi team, I met the same issue on Maui, it impacted the unpacked program. Do you have any workaround or fixing plan on this. Thanks so much in advance. |
The issue at the MAUI repository has been closed now. Is the fix from Win2D already read? Thank you! |
Is there any update on this? |
This is very similar to #891
But instead of the CanvasFontSet API, I am trying to render an image using text with the
CanvasTextFormat
type. This thows a similar exception:The URI specified in the CanvasTextFormat's FontFamily has an invalid scheme; the scheme may be omitted, or must be one of ms-appx:// or ms-appdata://.
This is our code:
https://github.com/dotnet/maui/blob/d8939fdfc48fb36d18a3bb6d9cafb1c09c19117b/src/Core/src/ImageSources/FontImageSourceService/FontImageSourceService.Windows.cs#L55-L95
We are basically rendering a character onto a canvas using some font properties. Fonts work fine in packaged and when I do unpackaged I get an exception.
I also tried a full path using the
file://
and that does not crash, but it renders the placeholder/missing empty rectangle.The text was updated successfully, but these errors were encountered: