You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
664 B
28 lines
664 B
/*
|
|
* Copyright 2017 Google Inc.
|
|
*
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
* found in the LICENSE file.
|
|
*/
|
|
|
|
#ifndef SkFontMgr_mac_ct_DEFINED
|
|
#define SkFontMgr_mac_ct_DEFINED
|
|
|
|
#include "include/core/SkRefCnt.h"
|
|
#include "include/core/SkTypes.h"
|
|
|
|
#ifdef SK_BUILD_FOR_MAC
|
|
#import <ApplicationServices/ApplicationServices.h>
|
|
#endif
|
|
|
|
#ifdef SK_BUILD_FOR_IOS
|
|
#include <CoreText/CoreText.h>
|
|
#endif
|
|
|
|
class SkFontMgr;
|
|
|
|
/** Create a font manager for CoreText. If the collection is nullptr the system default will be used. */
|
|
SK_API extern sk_sp<SkFontMgr> SkFontMgr_New_CoreText(CTFontCollectionRef);
|
|
|
|
#endif // SkFontMgr_mac_ct_DEFINED
|