bungeman | 0b1de26 | 2015-06-17 07:55:59 -0700 | [diff] [blame] | 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 | |
Hal Canary | 6b20a55 | 2017-02-07 14:09:38 -0500 | [diff] [blame] | 11 | #include "SkRefCnt.h" |
bungeman | 0b1de26 | 2015-06-17 07:55:59 -0700 | [diff] [blame] | 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 | */ |
Ben Wagner | 3546ff1 | 2017-01-03 13:32:36 -0500 | [diff] [blame] | 20 | SK_API sk_sp<SkFontMgr> SkFontMgr_New_FontConfig(FcConfig* fc); |
bungeman | 0b1de26 | 2015-06-17 07:55:59 -0700 | [diff] [blame] | 21 | |
| 22 | #endif // #ifndef SkFontMgr_fontconfig_DEFINED |