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 UI_GFX_FONT_FALLBACK_ANDROID_H_ | |
6 #define UI_GFX_FONT_FALLBACK_ANDROID_H_ | |
7 | |
8 #include <string> | |
9 | |
10 #include "third_party/icu/source/common/unicode/uchar.h" | |
11 #include "ui/gfx/font_fallback.h" | |
12 #include "ui/gfx/gfx_export.h" | |
13 | |
14 namespace gfx { | |
15 | |
16 // Return a font name which provides a glyph for the Unicode code point | |
17 // specified by character. | |
18 // default_font: The main font for which fallbacks are required | |
19 // c: a UTF-32 code point | |
20 // preferred_locale: preferred locale identifier (if any) for |c| | |
21 // (e.g. "en", "ja", "zh-CN") | |
22 // | |
23 // Returns: the font name. The value is empty if the request could not be | |
24 // satisfied or if the provided default font supports it. | |
25 GFX_EXPORT std::string GetFallbackFontNameForChar( | |
Alexei Svitkine (slow)
2017/05/09 14:52:17
If this is only used by vr_shell, why not put the
acondor_
2017/05/09 16:21:51
Because this is platform dependent code and this s
Alexei Svitkine (slow)
2017/05/09 16:40:41
Any directory in Chrome could have platform-specif
acondor_
2017/05/09 18:44:16
You are right. I moved the code to vr_shell namesp
| |
26 const Font& default_font, | |
27 UChar32 c, | |
28 const std::string& preferred_locale); | |
29 | |
30 } // namespace gfx | |
31 | |
32 #endif // UI_GFX_FONT_FALLBACK_ANDROID_H_ | |
OLD | NEW |