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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_ANDROID_VR_SHELL_FONT_FALLBACK_H_
6 #define CHROME_BROWSER_ANDROID_VR_SHELL_FONT_FALLBACK_H_
7
8 #include <string>
9
10 #include "third_party/icu/source/common/unicode/uchar.h"
11
12 namespace gfx {
13 class Font;
14 } // namespace gfx
15
16 namespace vr_shell {
17
18 // Return a font name which provides a glyph for the Unicode code point
19 // specified by character.
20 // default_font: The main font for which fallbacks are required
21 // c: a UTF-32 code point
22 // preferred_locale: preferred locale identifier (if any) for |c|
23 // (e.g. "en", "ja", "zh-CN")
24 //
25 // Returns: the font name. The value is empty if the request could not be
26 // satisfied or if the provided default font supports it.
27 std::string GetFallbackFontNameForChar(const gfx::Font& default_font,
28 UChar32 c,
29 const std::string& preferred_locale);
30
31 } // namespace vr_shell
32
33 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_FONT_FALLBACK_H_
OLDNEW
« 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