| 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 |
#include <memory> |
| 15 |
|
| 16 |
class SkFontMgr; |
| 17 |
class SkFontConfigInterface; |
| 18 |
class SkFontScanner; |
| 19 |
|
| 20 |
/** Creates a SkFontMgr which wraps a SkFontConfigInterface. */ |
| 21 |
SK_API sk_sp<SkFontMgr> SkFontMgr_New_FCI(sk_sp<SkFontConfigInterface> fci, |
| 22 |
std::unique_ptr<SkFontScanner> scanner); |
| 23 |
|
| 24 |
#endif // #ifndef SkFontMgr_FontConfigInterface_DEFINED |