• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright (c) 2023 Huawei Device Co., Ltd. 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 #if SK_BUILD_FONT_MGR_FOR_OHOS
6 #include "SkFontMgr.h"
7 SK_API sk_sp<SkFontMgr> SkFontMgr_New_OHOS(const char* path);
8 
9 /*! To implement the porting layer to return the default factory for Harmony platform
10  * \return the default font manager for Harmony platform
11  */
Factory()12 sk_sp<SkFontMgr> SkFontMgr::Factory()
13 {
14     return SkFontMgr_New_OHOS(nullptr);
15 }
16 #endif /* SK_BUILD_FONT_MGR_FOR_OHOS */