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

Unified Diff: chrome/browser/android/vr_shell/font_fallback.h

Issue 2863693002: Fallback Font Cache and Character Hinting for VRShell (Closed)
Patch Set: SkTypeface complete type 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 | « chrome/browser/android/vr_shell/BUILD.gn ('k') | chrome/browser/android/vr_shell/font_fallback.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/vr_shell/font_fallback.h
diff --git a/chrome/browser/android/vr_shell/font_fallback.h b/chrome/browser/android/vr_shell/font_fallback.h
new file mode 100644
index 0000000000000000000000000000000000000000..5eb85c6dd3eb3c7c1882a8f7e18dccdc24f8559f
--- /dev/null
+++ b/chrome/browser/android/vr_shell/font_fallback.h
@@ -0,0 +1,33 @@
+// 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 CHROME_BROWSER_ANDROID_VR_SHELL_FONT_FALLBACK_H_
+#define CHROME_BROWSER_ANDROID_VR_SHELL_FONT_FALLBACK_H_
+
+#include <string>
+
+#include "third_party/icu/source/common/unicode/uchar.h"
+
+namespace gfx {
+class Font;
+} // namespace gfx
+
+namespace vr_shell {
+
+// Return a font name which provides a glyph for the Unicode code point
+// specified by character.
+// default_font: The main font for which fallbacks are required
+// c: a UTF-32 code point
+// preferred_locale: preferred locale identifier (if any) for |c|
+// (e.g. "en", "ja", "zh-CN")
+//
+// Returns: the font name. The value is empty if the request could not be
+// satisfied or if the provided default font supports it.
+std::string GetFallbackFontNameForChar(const gfx::Font& default_font,
+ UChar32 c,
+ const std::string& preferred_locale);
+
+} // namespace vr_shell
+
+#endif // CHROME_BROWSER_ANDROID_VR_SHELL_FONT_FALLBACK_H_
« no previous file with comments | « chrome/browser/android/vr_shell/BUILD.gn ('k') | chrome/browser/android/vr_shell/font_fallback.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698