This repository was archived by the owner on Feb 25, 2025. It is now read-only.
File tree 1 file changed +17
-0
lines changed
1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -103,18 +103,34 @@ void FontCollection::SetupDefaultFontManager() {
103
103
104
104
void FontCollection::SetDefaultFontManager (sk_sp<SkFontMgr> font_manager) {
105
105
default_font_manager_ = font_manager;
106
+
107
+ #if FLUTTER_ENABLE_SKSHAPER
108
+ skt_collection_.reset ();
109
+ #endif
106
110
}
107
111
108
112
void FontCollection::SetAssetFontManager (sk_sp<SkFontMgr> font_manager) {
109
113
asset_font_manager_ = font_manager;
114
+
115
+ #if FLUTTER_ENABLE_SKSHAPER
116
+ skt_collection_.reset ();
117
+ #endif
110
118
}
111
119
112
120
void FontCollection::SetDynamicFontManager (sk_sp<SkFontMgr> font_manager) {
113
121
dynamic_font_manager_ = font_manager;
122
+
123
+ #if FLUTTER_ENABLE_SKSHAPER
124
+ skt_collection_.reset ();
125
+ #endif
114
126
}
115
127
116
128
void FontCollection::SetTestFontManager (sk_sp<SkFontMgr> font_manager) {
117
129
test_font_manager_ = font_manager;
130
+
131
+ #if FLUTTER_ENABLE_SKSHAPER
132
+ skt_collection_.reset ();
133
+ #endif
118
134
}
119
135
120
136
// Return the available font managers in the order they should be queried.
@@ -365,6 +381,7 @@ void FontCollection::ClearFontFamilyCache() {
365
381
}
366
382
#endif
367
383
}
384
+
368
385
#if FLUTTER_ENABLE_SKSHAPER
369
386
370
387
sk_sp<skia::textlayout::FontCollection>
You can’t perform that action at this time.
0 commit comments