Skip to content

Conversation

@lynxassistant
Copy link

@lynxassistant lynxassistant bot commented Nov 28, 2025

No description provided.

…ng cached fonts.

Previously, `font-feature-settings` were part of the `FontSettingsKey` used for caching `Typeface` objects. This was incorrect because the cached `Typeface` itself does not retain these settings. As a result, when a font was retrieved from the cache, the feature settings were lost.

This commit decouples font feature settings from the cache key. The `fontFeatureSettings` are now applied directly to the `TextPaint` object after the `Typeface` is retrieved, regardless of whether it came from the cache or was newly created.

This ensures that font features are consistently applied in all scenarios, fixing the rendering bug for cached fonts.

issue:m-6795375750
@jianliang00 jianliang00 merged commit c1f1a77 into release/3.5 Dec 3, 2025
19 checks passed
@jianliang00 jianliang00 deleted the shadow/p/Randycn/change-1764298065-e7YMvbFd branch December 3, 2025 04:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants