-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Fix FontCollection glyph typeface caching #17519
Conversation
… find the nearest match
You can test this PR using the following package version. |
You can test this PR using the following package version. |
You can test this PR using the following package version. |
* Make sure we always cache the created glyph typeface before we try to find the nearest match * Cleanup usings * Add failing test * Cache the matched glyph typeface for EmbeddedFontCollection
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