• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 <fontconfig/fontconfig.h>
12 #include "include/core/SkRefCnt.h"
13 #include <memory>
14 
15 class SkFontMgr;
16 
17 /** Create a font manager around a FontConfig instance.
18  *  If 'fc' is NULL, will use a new default config.
19  *  Takes ownership of 'fc' and will call FcConfigDestroy on it.
20  */
21 class SkFontScanner;
22 SK_API sk_sp<SkFontMgr> SkFontMgr_New_FontConfig(FcConfig* fc, std::unique_ptr<SkFontScanner> scanner);
23 SK_API sk_sp<SkFontMgr> SkFontMgr_New_FontConfig(FcConfig* fc);
24 #endif // #ifndef SkFontMgr_fontconfig_DEFINED
25