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

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

Issue 2877813002: [headless] Enable headless embedders to specify fonts. (Closed)
Patch Set: 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
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..c056132843bf7ba6bb8a20f5eee956cb9512f9a8
--- /dev/null
+++ b/headless/public/util/fontconfig.h
@@ -0,0 +1,17 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
Sami 2017/05/12 16:35:52 ++year
altimin 2017/05/12 17:39:10 Done.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef HEADLESS_PUBLIC_INIT_FONTS_H_
Sami 2017/05/12 16:35:52 HEADLESS_PUBLIC_UTIL_FONTCONFIG_H
altimin 2017/05/12 17:39:10 Done.
+#define HEADLESS_PUBLIC_INIT_FONTS_H_
+
+namespace headless {
+
+// Wrapper around FcInit() given that libfreetype is built into chromium.
Sami 2017/05/12 16:35:52 Let's describe what this actually does, i.e., init
altimin 2017/05/12 17:39:10 Done.
+void InitFonts(const char* font_config_path);
+
+void ReleaseFonts();
+
+} // namespace headless
+
+#endif // HEADLESS_PUBLIC_INIT_FONTS_H_
Sami 2017/05/12 16:35:52 Ditto.
altimin 2017/05/12 17:39:10 Done.

Powered by Google App Engine
This is Rietveld 408576698