Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(335)

Unified Diff: headless/public/util/fontconfig.h

Issue 2877813002: [headless] Enable headless embedders to specify fonts. (Closed)
Patch Set: rebased Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « headless/headless.gni ('k') | headless/public/util/fontconfig.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: headless/public/util/fontconfig.h
diff --git a/headless/public/util/fontconfig.h b/headless/public/util/fontconfig.h
new file mode 100644
index 0000000000000000000000000000000000000000..2a504930613396c70ab324517f91b18e69d2cd98
--- /dev/null
+++ b/headless/public/util/fontconfig.h
@@ -0,0 +1,20 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef HEADLESS_PUBLIC_UTIL_FONTCONFIG_H_
+#define HEADLESS_PUBLIC_UTIL_FONTCONFIG_H_
+
+namespace headless {
+
+// Initialize fontconfig by loading fonts from given path without following
+// symlinks. This is a wrapper around FcInit from libfreetype bundled with
+// Chromium modified to enable headless embedders to deploy in custom
+// environments.
+void InitFonts(const char* font_config_path);
+
+void ReleaseFonts();
+
+} // namespace headless
+
+#endif // HEADLESS_PUBLIC_UTIL_FONTCONFIG_H_
« no previous file with comments | « headless/headless.gni ('k') | headless/public/util/fontconfig.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698