OLD | NEW |
(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_ |
OLD | NEW |