Skip to content
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

Support the unpackaged format for font loading #20790

Merged
merged 1 commit into from Feb 23, 2024
Merged

Conversation

mattleibow
Copy link
Member

@mattleibow mattleibow commented Feb 22, 2024

Description of Change

This PR adds some logic similar to what was added to loading the font family name using Win2D. It has to convert the MSIX URI format to the file:// URI format.

This does not fix fix the issue as we also need a Win2D update that actually has the other half of the fix.

I need to add tests still, but we could potentially merge this for now and add tests in the https://github.com/dotnet/maui/blob/main/src/Controls/samples/Controls.Sample.UITests/Concepts/ImageLoadingGalleryPage.cs and https://github.com/dotnet/maui/blob/main/src/Controls/tests/UITests/Tests/Concepts/ImageLoadingGalleryTests.cs files. I currently just added the tests for the file-based images, not the generated ones.

Issues Fixed

Almost fixes #15802

@jsuarezruiz jsuarezruiz added the area/fonts 🅰️ Custom fonts and Font related API's label Feb 23, 2024
@rmarinho rmarinho merged commit 28fdc7e into main Feb 23, 2024
45 of 47 checks passed
@rmarinho rmarinho deleted the dev/fix-fontimagesource branch February 23, 2024 15:59
@github-actions github-actions bot locked and limited conversation to collaborators Mar 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area/fonts 🅰️ Custom fonts and Font related API's
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Windows FontImageSourceService assumes MSIX packaging
4 participants