1 /* 2 * Copyright 2016 Google Inc. 3 * 4 * Use of this source code is governed by a BSD-style license that can be 5 * found in the LICENSE file. 6 */ 7 8 #ifndef SkFontMgr_FontConfigInterface_DEFINED 9 #define SkFontMgr_FontConfigInterface_DEFINED 10 11 #include "include/core/SkRefCnt.h" 12 #include "include/core/SkTypes.h" 13 14 class SkFontMgr; 15 class SkFontConfigInterface; 16 class SkFontScanner; 17 18 /** Creates a SkFontMgr which wraps a SkFontConfigInterface. */ 19 SK_API sk_sp<SkFontMgr> SkFontMgr_New_FCI(sk_sp<SkFontConfigInterface> fci); 20 SK_API sk_sp<SkFontMgr> SkFontMgr_New_FCI(sk_sp<SkFontConfigInterface> fci, 21 std::unique_ptr<SkFontScanner> scanner); 22 23 #endif // #ifndef SkFontMgr_FontConfigInterface_DEFINED 24