AvaloniaUI / Avalonia

Develop Desktop, Embedded, Mobile and WebAssembly apps with C# and XAML. The most popular .NET UI client technology
https://avaloniaui.net
MIT License
26.06k stars 2.25k forks source link

Fix FontCollection glyph typeface caching #17519

Closed Gillibald closed 6 days ago

Gillibald commented 1 week ago

What does the pull request do?

This PR ensures the current IFontCollection implementations properly cache glyph typeface when they create a synthetic typeface.

This also changes the SystemFontCollection so created glyph typefaces are added to the cache before the nearest match is attempted to be found.

What is the current behavior?

What is the updated/expected behavior with this PR?

How was the solution implemented (if it's not obvious)?

Checklist

Breaking changes

Obsoletions / Deprecations

Fixed issues

avaloniaui-bot commented 1 week ago

You can test this PR using the following package version. 11.3.999-cibuild0053361-alpha. (feed url: https://nuget-feed-all.avaloniaui.net/v3/index.json) [PRBUILDID]

avaloniaui-bot commented 1 week ago

You can test this PR using the following package version. 11.3.999-cibuild0053366-alpha. (feed url: https://nuget-feed-all.avaloniaui.net/v3/index.json) [PRBUILDID]

avaloniaui-bot commented 1 week ago

You can test this PR using the following package version. 11.3.999-cibuild0053388-alpha. (feed url: https://nuget-feed-all.avaloniaui.net/v3/index.json) [PRBUILDID]