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 27 matching lines...) Expand all Loading... |
38 #include "wtf/Vector.h" | 38 #include "wtf/Vector.h" |
39 #include <hb.h> | 39 #include <hb.h> |
40 #include <memory> | 40 #include <memory> |
41 #include <unicode/uscript.h> | 41 #include <unicode/uscript.h> |
42 | 42 |
43 namespace blink { | 43 namespace blink { |
44 | 44 |
45 class Font; | 45 class Font; |
46 class SimpleFontData; | 46 class SimpleFontData; |
47 class HarfBuzzShaper; | 47 class HarfBuzzShaper; |
48 class UnicodeRangeSet; | |
49 | 48 |
50 // Shaping text runs is split into several stages: Run segmentation, shaping the | 49 // Shaping text runs is split into several stages: Run segmentation, shaping the |
51 // initial segment, identify shaped and non-shaped sequences of the shaping | 50 // initial segment, identify shaped and non-shaped sequences of the shaping |
52 // result, and processing sub-runs by trying to shape them with a fallback font | 51 // result, and processing sub-runs by trying to shape them with a fallback font |
53 // until the last resort font is reached. | 52 // until the last resort font is reached. |
54 // | 53 // |
55 // If caps formatting is requested, an additional lowercase/uppercase | 54 // If caps formatting is requested, an additional lowercase/uppercase |
56 // segmentation stage is required. In this stage, OpenType features in the font | 55 // segmentation stage is required. In this stage, OpenType features in the font |
57 // are matched against the requested formatting and formatting is synthesized as | 56 // are matched against the requested formatting and formatting is synthesized as |
58 // required by the CSS Level 3 Fonts Module. | 57 // required by the CSS Level 3 Fonts Module. |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 hb_buffer_t*); | 166 hb_buffer_t*); |
168 | 167 |
169 const UChar* m_normalizedBuffer; | 168 const UChar* m_normalizedBuffer; |
170 unsigned m_normalizedBufferLength; | 169 unsigned m_normalizedBufferLength; |
171 TextDirection m_textDirection; | 170 TextDirection m_textDirection; |
172 }; | 171 }; |
173 | 172 |
174 } // namespace blink | 173 } // namespace blink |
175 | 174 |
176 #endif // HarfBuzzShaper_h | 175 #endif // HarfBuzzShaper_h |
OLD | NEW |