aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/ports/SkFontMgr_fontconfig.h
blob: 7a59ff0c469e7ceeb5266f905ed6f68febd9d944 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*
 * Copyright 2015 Google Inc.
 *
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

#ifndef SkFontMgr_fontconfig_DEFINED
#define SkFontMgr_fontconfig_DEFINED

#include "SkTypes.h"
#include <fontconfig/fontconfig.h>

class SkFontMgr;

/** Create a font manager around a FontConfig instance.
 *  If 'fc' is NULL, will use a new default config.
 *  Takes ownership of 'fc' and will call FcConfigDestroy on it.
 */
SK_API SkFontMgr* SkFontMgr_New_FontConfig(FcConfig* fc);

#endif // #ifndef SkFontMgr_fontconfig_DEFINED