Add platform_fuchsia.cc for default font on fuchsia (flutter/engine#9204)
This commit is contained in:
@@ -923,6 +923,7 @@ FILE: ../../../flutter/sky/tools/roll/patches/chromium/android_build.patch
|
||||
FILE: ../../../flutter/third_party/txt/src/txt/platform.cc
|
||||
FILE: ../../../flutter/third_party/txt/src/txt/platform.h
|
||||
FILE: ../../../flutter/third_party/txt/src/txt/platform_android.cc
|
||||
FILE: ../../../flutter/third_party/txt/src/txt/platform_fuchsia.cc
|
||||
FILE: ../../../flutter/third_party/txt/src/txt/platform_linux.cc
|
||||
FILE: ../../../flutter/third_party/txt/src/txt/platform_mac.mm
|
||||
FILE: ../../../flutter/vulkan/vulkan_application.cc
|
||||
|
||||
2
engine/src/flutter/third_party/txt/BUILD.gn
vendored
2
engine/src/flutter/third_party/txt/BUILD.gn
vendored
@@ -142,6 +142,8 @@ source_set("txt") {
|
||||
sources += [ "src/txt/platform_android.cc" ]
|
||||
} else if (is_linux) {
|
||||
sources += [ "src/txt/platform_linux.cc" ]
|
||||
} else if (is_fuchsia) {
|
||||
sources += [ "src/txt/platform_fuchsia.cc" ]
|
||||
} else {
|
||||
sources += [ "src/txt/platform.cc" ]
|
||||
}
|
||||
|
||||
17
engine/src/flutter/third_party/txt/src/txt/platform_fuchsia.cc
vendored
Normal file
17
engine/src/flutter/third_party/txt/src/txt/platform_fuchsia.cc
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
// Copyright 2013 The Flutter 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 "Roboto";
|
||||
}
|
||||
|
||||
sk_sp<SkFontMgr> GetDefaultFontManager() {
|
||||
return SkFontMgr::RefDefault();
|
||||
}
|
||||
|
||||
} // namespace txt
|
||||
Reference in New Issue
Block a user