diff --git a/engine/src/flutter/third_party/txt/BUILD.gn b/engine/src/flutter/third_party/txt/BUILD.gn index c331d14b096..cbcd00aae10 100644 --- a/engine/src/flutter/third_party/txt/BUILD.gn +++ b/engine/src/flutter/third_party/txt/BUILD.gn @@ -105,6 +105,8 @@ source_set("txt") { set_sources_assignment_filter([]) sources += [ "src/txt/platform_mac.mm" ] set_sources_assignment_filter(sources_assignment_filter) + } else if (is_android) { + sources += [ "src/txt/platform_android.cc" ] } else { sources += [ "src/txt/platform.cc" ] } diff --git a/engine/src/flutter/third_party/txt/src/txt/paragraph.cc b/engine/src/flutter/third_party/txt/src/txt/paragraph.cc index b7082ac33d4..c8e0896c93b 100644 --- a/engine/src/flutter/third_party/txt/src/txt/paragraph.cc +++ b/engine/src/flutter/third_party/txt/src/txt/paragraph.cc @@ -148,8 +148,8 @@ bool Paragraph::AddRunsToLineBreaker( auto collection = font_collection_->GetMinikinFontCollectionForFamily( run.style.font_family); if (collection == nullptr) { - FTL_DLOG(INFO) << "Could not find font collection for family \"" - << run.style.font_family << "\"."; + FTL_LOG(INFO) << "Could not find font collection for family \"" + << run.style.font_family << "\"."; return false; } breaker_.addStyleRun(&paint, collection, font, run.start, run.end, false, diff --git a/engine/src/flutter/third_party/txt/src/txt/platform_android.cc b/engine/src/flutter/third_party/txt/src/txt/platform_android.cc new file mode 100644 index 00000000000..e42a25dbf8e --- /dev/null +++ b/engine/src/flutter/third_party/txt/src/txt/platform_android.cc @@ -0,0 +1,13 @@ +// Copyright 2017 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#include "txt/platform.h" + +namespace txt { + +std::string GetDefaultFontFamily() { + return "sans-serif"; +} + +} // namespace txt