1cb93a386Sopenharmony_ci/* 2cb93a386Sopenharmony_ci * Copyright 2017 Google Inc. 3cb93a386Sopenharmony_ci * 4cb93a386Sopenharmony_ci * Use of this source code is governed by a BSD-style license that can be 5cb93a386Sopenharmony_ci * found in the LICENSE file. 6cb93a386Sopenharmony_ci */ 7cb93a386Sopenharmony_ci 8cb93a386Sopenharmony_ci#ifndef SkFontMgr_mac_ct_DEFINED 9cb93a386Sopenharmony_ci#define SkFontMgr_mac_ct_DEFINED 10cb93a386Sopenharmony_ci 11cb93a386Sopenharmony_ci#include "include/core/SkRefCnt.h" 12cb93a386Sopenharmony_ci#include "include/core/SkTypes.h" 13cb93a386Sopenharmony_ci 14cb93a386Sopenharmony_ci#ifdef SK_BUILD_FOR_MAC 15cb93a386Sopenharmony_ci#import <ApplicationServices/ApplicationServices.h> 16cb93a386Sopenharmony_ci#endif 17cb93a386Sopenharmony_ci 18cb93a386Sopenharmony_ci#ifdef SK_BUILD_FOR_IOS 19cb93a386Sopenharmony_ci#include <CoreText/CoreText.h> 20cb93a386Sopenharmony_ci#endif 21cb93a386Sopenharmony_ci 22cb93a386Sopenharmony_ciclass SkFontMgr; 23cb93a386Sopenharmony_ci 24cb93a386Sopenharmony_ci/** Create a font manager for CoreText. If the collection is nullptr the system default will be used. */ 25cb93a386Sopenharmony_ciSK_API extern sk_sp<SkFontMgr> SkFontMgr_New_CoreText(CTFontCollectionRef); 26cb93a386Sopenharmony_ci 27cb93a386Sopenharmony_ci#endif // SkFontMgr_mac_ct_DEFINED 28