| 1 |
/* |
| 2 |
* Copyright 2017 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_mac_ct_DEFINED |
| 9 |
#define SkFontMgr_mac_ct_DEFINED |
| 10 |
|
| 11 |
#include "include/core/SkRefCnt.h" |
| 12 |
#include "include/core/SkTypes.h" |
| 13 |
|
| 14 |
#ifdef SK_BUILD_FOR_MAC |
| 15 |
#import <ApplicationServices/ApplicationServices.h> |
| 16 |
#endif |
| 17 |
|
| 18 |
#ifdef SK_BUILD_FOR_IOS |
| 19 |
#include <CoreText/CoreText.h> |
| 20 |
#endif |
| 21 |
|
| 22 |
class SkFontMgr; |
| 23 |
|
| 24 |
/** Create a font manager for CoreText. If the collection is nullptr the system default will be used. */ |
| 25 |
SK_API extern sk_sp<SkFontMgr> SkFontMgr_New_CoreText(CTFontCollectionRef); |
| 26 |
|
| 27 |
#endif // SkFontMgr_mac_ct_DEFINED |