summaryrefslogtreecommitdiff
path: root/native
diff options
context:
space:
mode:
authorSeigo Nonaka <nona@google.com>2019-04-05 15:20:19 -0700
committerSeigo Nonaka <nona@google.com>2019-04-05 15:20:19 -0700
commitddc877300fa606d25b163eda1e3a1de1b6591f87 (patch)
tree627af473fead0dfc0de564cbf3ce37f102926896 /native
parentdd07ae579c291a2b6ffe09bd576fd908eb9e5ddd (diff)
Pass runMax = 1 to stop unnecessary itemization
Bug: 130044291 Test: N/A Change-Id: I124b211f9a3db24d4c70c6d6bc0b1a9fdc93b9f7
Diffstat (limited to 'native')
-rw-r--r--native/android/system_fonts.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/native/android/system_fonts.cpp b/native/android/system_fonts.cpp
index 302cbd11da4b..9791da63359b 100644
--- a/native/android/system_fonts.cpp
+++ b/native/android/system_fonts.cpp
@@ -250,7 +250,8 @@ AFont* _Nonnull AFontMatcher_match(
minikin::U16StringPiece(text, textLength),
matcher->mFontStyle,
matcher->mLocaleListId,
- static_cast<minikin::FamilyVariant>(matcher->mFamilyVariant));
+ static_cast<minikin::FamilyVariant>(matcher->mFamilyVariant),
+ 1 /* maxRun */);
const minikin::Font* font = runs[0].fakedFont.font;
std::unique_ptr<AFont> result = std::make_unique<AFont>();