Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(476)

Side by Side Diff: third_party/harfbuzz-ng/src/hb-ot-shape-complex-indic.cc

Issue 1723043002: Roll HarfBuzz to 1.2.1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Include upstream ebd7431f824 Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright © 2011,2012 Google, Inc. 2 * Copyright © 2011,2012 Google, Inc.
3 * 3 *
4 * This is part of HarfBuzz, a text shaping library. 4 * This is part of HarfBuzz, a text shaping library.
5 * 5 *
6 * Permission is hereby granted, without written agreement and without 6 * Permission is hereby granted, without written agreement and without
7 * license or royalty fees, to use, copy, modify, and distribute this 7 * license or royalty fees, to use, copy, modify, and distribute this
8 * software and its documentation for any purpose, provided that the 8 * software and its documentation for any purpose, provided that the
9 * above copyright notice and the following two paragraphs appear in 9 * above copyright notice and the following two paragraphs appear in
10 * all copies of this software. 10 * all copies of this software.
(...skipping 1228 matching lines...) Expand 10 before | Expand all | Expand 10 after
1239 { 1239 {
1240 last_syllable = syllable; 1240 last_syllable = syllable;
1241 1241
1242 hb_glyph_info_t ginfo = dottedcircle; 1242 hb_glyph_info_t ginfo = dottedcircle;
1243 ginfo.cluster = buffer->cur().cluster; 1243 ginfo.cluster = buffer->cur().cluster;
1244 ginfo.mask = buffer->cur().mask; 1244 ginfo.mask = buffer->cur().mask;
1245 ginfo.syllable() = buffer->cur().syllable(); 1245 ginfo.syllable() = buffer->cur().syllable();
1246 /* TODO Set glyph_props? */ 1246 /* TODO Set glyph_props? */
1247 1247
1248 /* Insert dottedcircle after possible Repha. */ 1248 /* Insert dottedcircle after possible Repha. */
1249 while (buffer->idx < buffer->len && 1249 while (buffer->idx < buffer->len && !buffer->in_error &&
1250 last_syllable == buffer->cur().syllable() && 1250 last_syllable == buffer->cur().syllable() &&
1251 buffer->cur().indic_category() == OT_Repha) 1251 buffer->cur().indic_category() == OT_Repha)
1252 buffer->next_glyph (); 1252 buffer->next_glyph ();
1253 1253
1254 buffer->output_info (ginfo); 1254 buffer->output_info (ginfo);
1255 } 1255 }
1256 else 1256 else
1257 buffer->next_glyph (); 1257 buffer->next_glyph ();
1258 } 1258 }
1259 1259
(...skipping 582 matching lines...) Expand 10 before | Expand all | Expand 10 after
1842 data_destroy_indic, 1842 data_destroy_indic,
1843 NULL, /* preprocess_text */ 1843 NULL, /* preprocess_text */
1844 NULL, /* postprocess_glyphs */ 1844 NULL, /* postprocess_glyphs */
1845 HB_OT_SHAPE_NORMALIZATION_MODE_COMPOSED_DIACRITICS_NO_SHORT_CIRCUIT, 1845 HB_OT_SHAPE_NORMALIZATION_MODE_COMPOSED_DIACRITICS_NO_SHORT_CIRCUIT,
1846 decompose_indic, 1846 decompose_indic,
1847 compose_indic, 1847 compose_indic,
1848 setup_masks_indic, 1848 setup_masks_indic,
1849 HB_OT_SHAPE_ZERO_WIDTH_MARKS_NONE, 1849 HB_OT_SHAPE_ZERO_WIDTH_MARKS_NONE,
1850 false, /* fallback_position */ 1850 false, /* fallback_position */
1851 }; 1851 };
OLDNEW
« no previous file with comments | « third_party/harfbuzz-ng/src/hb-ot-shape.cc ('k') | third_party/harfbuzz-ng/src/hb-ot-shape-complex-myanmar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698