1 // Copyright 2013 The Flutter Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #ifndef TXT_PLATFORM_H_ 6 #define TXT_PLATFORM_H_ 7 8 #include <string> 9 #include "flutter/fml/macros.h" 10 11 #include "third_party/skia/include/core/SkFontMgr.h" 12 13 namespace txt { 14 15 enum FontManagerType { 16 DYNAMIC = 0, 17 ASSET = 1, 18 TEST = 2, 19 DEFAULT_OHOS = 3, 20 DEFAULT_ANDROID = 4, 21 NONE = 5, 22 }; 23 24 std::string GetDefaultFontFamily(); 25 26 sk_sp<SkFontMgr> GetDefaultFontManager(); 27 28 FontManagerType GetDefaultFontManagerType(); 29 30 } // namespace txt 31 32 #endif // TXT_PLATFORM_H_ 33