skia2/include/ports/SkFontMgr_fontconfig.h
bungeman 0b1de2626a Move FontConfig factory into separate file.
This moves the SkFontMgr::Factory implementation which creates a
FontMgr around FontConfig into its own file, and allows the user
to create one manually.

Review URL: https://codereview.chromium.org/1189753007
2015-06-17 07:56:00 -07:00

23 lines
578 B
C++

/*
* 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