2015-06-17 14:55:59 +00:00
|
|
|
/*
|
|
|
|
* 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
|
|
|
|
|
2017-02-07 19:09:38 +00:00
|
|
|
#include "SkRefCnt.h"
|
2015-06-17 14:55:59 +00:00
|
|
|
#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.
|
|
|
|
*/
|
2017-01-03 18:32:36 +00:00
|
|
|
SK_API sk_sp<SkFontMgr> SkFontMgr_New_FontConfig(FcConfig* fc);
|
2015-06-17 14:55:59 +00:00
|
|
|
|
|
|
|
#endif // #ifndef SkFontMgr_fontconfig_DEFINED
|