1 /* 2 * Copyright 2015 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_fontconfig_DEFINED 9 #define SkFontMgr_fontconfig_DEFINED 10 11 #include "SkRefCnt.h" 12 #include <fontconfig/fontconfig.h> 13 14 class SkFontMgr; 15 16 /** Create a font manager around a FontConfig instance. 17 * If 'fc' is NULL, will use a new default config. 18 * Takes ownership of 'fc' and will call FcConfigDestroy on it. 19 */ 20 SK_API sk_sp<SkFontMgr> SkFontMgr_New_FontConfig(FcConfig* fc); 21 22 #endif // #ifndef SkFontMgr_fontconfig_DEFINED 23