• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 <vector>
10 
11 #include "flutter/fml/macros.h"
12 #include "third_party/skia/include/core/SkFontMgr.h"
13 
14 namespace txt {
15 
16 enum FontManagerType {
17   DYNAMIC = 0,
18   ASSET = 1,
19   TEST = 2,
20   DEFAULT_OHOS = 3,
21   DEFAULT_ANDROID = 4,
22   NONE = 5,
23 };
24 
25 std::vector<std::string> GetDefaultFontFamilies();
26 
27 sk_sp<SkFontMgr> GetDefaultFontManager();
28 
29 FontManagerType GetDefaultFontManagerType();
30 
31 }  // namespace txt
32 
33 #endif  // TXT_PLATFORM_H_
34