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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 }; | 133 }; |
134 | 134 |
135 float nextExpansionPerOpportunity(); | 135 float nextExpansionPerOpportunity(); |
136 void setExpansion(float); | 136 void setExpansion(float); |
137 void setFontFeatures(); | 137 void setFontFeatures(); |
138 | 138 |
139 bool createHarfBuzzRuns(); | 139 bool createHarfBuzzRuns(); |
140 bool createHarfBuzzRunsForSingleCharacter(); | 140 bool createHarfBuzzRunsForSingleCharacter(); |
141 PassRefPtr<ShapeResult> shapeHarfBuzzRuns(); | 141 PassRefPtr<ShapeResult> shapeHarfBuzzRuns(); |
142 void shapeResult(ShapeResult*, unsigned, const HarfBuzzRun*, hb_buffer_t*); | 142 void shapeResult(ShapeResult*, unsigned, const HarfBuzzRun*, hb_buffer_t*); |
| 143 void shapeResultForTabulationCharacters(ShapeResult*, unsigned, const HarfBu
zzRun*); |
143 float adjustSpacing(ShapeResult::RunInfo*, size_t glyphIndex, unsigned curre
ntCharacterIndex, float& offsetX, float& totalAdvance); | 144 float adjustSpacing(ShapeResult::RunInfo*, size_t glyphIndex, unsigned curre
ntCharacterIndex, float& offsetX, float& totalAdvance); |
144 void addHarfBuzzRun(unsigned startCharacter, unsigned endCharacter, const Si
mpleFontData*, UScriptCode); | 145 void addHarfBuzzRun(unsigned startCharacter, unsigned endCharacter, const Si
mpleFontData*, UScriptCode); |
145 | 146 |
146 OwnPtr<UChar[]> m_normalizedBuffer; | 147 OwnPtr<UChar[]> m_normalizedBuffer; |
147 unsigned m_normalizedBufferLength; | 148 unsigned m_normalizedBufferLength; |
148 | 149 |
149 float m_wordSpacingAdjustment; // Delta adjustment (pixels) for each word br
eak. | 150 float m_wordSpacingAdjustment; // Delta adjustment (pixels) for each word br
eak. |
150 float m_letterSpacing; // Pixels to be added after each glyph. | 151 float m_letterSpacing; // Pixels to be added after each glyph. |
151 unsigned m_expansionOpportunityCount; | 152 unsigned m_expansionOpportunityCount; |
152 | 153 |
153 Vector<hb_feature_t, 4> m_features; | 154 Vector<hb_feature_t, 4> m_features; |
154 Vector<HarfBuzzRun, 16> m_harfBuzzRuns; | 155 Vector<HarfBuzzRun, 16> m_harfBuzzRuns; |
155 }; | 156 }; |
156 | 157 |
157 } // namespace blink | 158 } // namespace blink |
158 | 159 |
159 #endif // HarfBuzzShaper_h | 160 #endif // HarfBuzzShaper_h |
OLD | NEW |