blob: e0f41089d51d4a7ec599ffc66f9d011702c6b5e4 [file] [log] [blame]
bungeman0b1de262015-06-17 07:55:59 -07001/*
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 Canary6b20a552017-02-07 14:09:38 -050011#include "SkRefCnt.h"
bungeman0b1de262015-06-17 07:55:59 -070012#include <fontconfig/fontconfig.h>
13
14class 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 Wagner3546ff12017-01-03 13:32:36 -050020SK_API sk_sp<SkFontMgr> SkFontMgr_New_FontConfig(FcConfig* fc);
bungeman0b1de262015-06-17 07:55:59 -070021
22#endif // #ifndef SkFontMgr_fontconfig_DEFINED