aboutsummaryrefslogtreecommitdiff
path: root/src/deps/skia/include/ports/SkFontMgr_fontconfig.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/deps/skia/include/ports/SkFontMgr_fontconfig.h')
-rw-r--r--src/deps/skia/include/ports/SkFontMgr_fontconfig.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/deps/skia/include/ports/SkFontMgr_fontconfig.h b/src/deps/skia/include/ports/SkFontMgr_fontconfig.h
new file mode 100644
index 000000000..4b2bb2d29
--- /dev/null
+++ b/src/deps/skia/include/ports/SkFontMgr_fontconfig.h
@@ -0,0 +1,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 "include/core/SkRefCnt.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 sk_sp<SkFontMgr> SkFontMgr_New_FontConfig(FcConfig* fc);
+
+#endif // #ifndef SkFontMgr_fontconfig_DEFINED