diff --git a/native/android/system_fonts.cpp b/native/android/system_fonts.cpp index 60b0f1eeaf72f..9fe792958cefa 100644 --- a/native/android/system_fonts.cpp +++ b/native/android/system_fonts.cpp @@ -329,7 +329,9 @@ AFont* _Nonnull AFontMatcher_match( static_cast(matcher->mFamilyVariant), 1 /* maxRun */); - const std::shared_ptr& font = runs[0].fakedFont.font; + const std::shared_ptr& font = + fc->getBestFont(minikin::U16StringPiece(text, textLength), runs[0], matcher->mFontStyle) + .font; std::unique_ptr result = std::make_unique(); const android::MinikinFontSkia* minikinFontSkia = reinterpret_cast(font->typeface().get());