OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 #include "wtf/HashSet.h" | 43 #include "wtf/HashSet.h" |
44 #include "wtf/Vector.h" | 44 #include "wtf/Vector.h" |
45 #include "wtf/text/CharacterNames.h" | 45 #include "wtf/text/CharacterNames.h" |
46 #include <hb.h> | 46 #include <hb.h> |
47 #include <memory> | 47 #include <memory> |
48 #include <unicode/uscript.h> | 48 #include <unicode/uscript.h> |
49 | 49 |
50 namespace blink { | 50 namespace blink { |
51 | 51 |
52 class Font; | 52 class Font; |
53 class GlyphBuffer; | |
54 class SimpleFontData; | 53 class SimpleFontData; |
55 class HarfBuzzShaper; | 54 class HarfBuzzShaper; |
56 class UnicodeRangeSet; | 55 class UnicodeRangeSet; |
57 | 56 |
58 // Shaping text runs is split into several stages: Run segmentation, shaping the | 57 // Shaping text runs is split into several stages: Run segmentation, shaping the |
59 // initial segment, identify shaped and non-shaped sequences of the shaping | 58 // initial segment, identify shaped and non-shaped sequences of the shaping |
60 // result, and processing sub-runs by trying to shape them with a fallback font | 59 // result, and processing sub-runs by trying to shape them with a fallback font |
61 // until the last resort font is reached. | 60 // until the last resort font is reached. |
62 // | 61 // |
63 // If caps formatting is requested, an additional lowercase/uppercase | 62 // If caps formatting is requested, an additional lowercase/uppercase |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 std::unique_ptr<UChar[]> m_normalizedBuffer; | 209 std::unique_ptr<UChar[]> m_normalizedBuffer; |
211 unsigned m_normalizedBufferLength; | 210 unsigned m_normalizedBufferLength; |
212 | 211 |
213 FeaturesVector m_features; | 212 FeaturesVector m_features; |
214 Deque<HolesQueueItem> m_holesQueue; | 213 Deque<HolesQueueItem> m_holesQueue; |
215 }; | 214 }; |
216 | 215 |
217 } // namespace blink | 216 } // namespace blink |
218 | 217 |
219 #endif // HarfBuzzShaper_h | 218 #endif // HarfBuzzShaper_h |
OLD | NEW |