OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef FontFallbackPriority_h | 5 #ifndef FontFallbackPriority_h |
6 #define FontFallbackPriority_h | 6 #define FontFallbackPriority_h |
7 | 7 |
8 namespace blink { | 8 namespace blink { |
9 | 9 |
10 // http://unicode.org/reports/tr51/#Presentation_Style discusses the differences | 10 // http://unicode.org/reports/tr51/#Presentation_Style discusses the differences |
11 // between emoji in text and the emoji in emoji presentation. In that sense, the | 11 // between emoji in text and the emoji in emoji presentation. In that sense, the |
12 // EmojiEmoji wording is taken from there. Also compare | 12 // EmojiEmoji wording is taken from there. Also compare |
13 // http://unicode.org/Public/emoji/1.0/emoji-data.txt | 13 // http://unicode.org/Public/emoji/1.0/emoji-data.txt |
14 enum class FontFallbackPriority { | 14 enum class FontFallbackPriority { |
15 // For regular non-symbols text, | 15 // For regular non-symbols text, |
16 // normal text fallback in FontFallbackIterator | 16 // normal text fallback in FontFallbackIterator |
17 Text, | 17 Text, |
18 // For non-emoji symbols | |
19 Symbols, | |
20 // For math & technical symbols | |
21 Math, | |
22 // For emoji in text presentaiton | 18 // For emoji in text presentaiton |
23 EmojiText, | 19 EmojiText, |
24 // For emoji in emoji presentation | 20 // For emoji in emoji presentation |
25 EmojiEmoji, | 21 EmojiEmoji, |
26 Invalid | 22 Invalid |
27 }; | 23 }; |
28 | 24 |
29 bool isNonTextFallbackPriority(FontFallbackPriority); | 25 bool isNonTextFallbackPriority(FontFallbackPriority); |
30 | 26 |
31 }; // namespace blink | 27 }; // namespace blink |
32 | 28 |
33 #endif | 29 #endif |
OLD | NEW |