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

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

Issue 1867053004: Roll HarfBuzz to 1.2.6 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Roll to 1.2.6 instead Created 4 years, 8 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 © 2010,2012 Google, Inc. 2 * Copyright © 2010,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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 {0x0E4Du, 0xF711u, 0xF899u}, /* NIKHAHIT */ 132 {0x0E4Du, 0xF711u, 0xF899u}, /* NIKHAHIT */
133 {0x0000u, 0x0000u, 0x0000u} 133 {0x0000u, 0x0000u, 0x0000u}
134 }; 134 };
135 static const thai_pua_mapping_t RD_mappings[] = { 135 static const thai_pua_mapping_t RD_mappings[] = {
136 {0x0E0Du, 0xF70Fu, 0xF89Au}, /* YO YING */ 136 {0x0E0Du, 0xF70Fu, 0xF89Au}, /* YO YING */
137 {0x0E10u, 0xF700u, 0xF89Eu}, /* THO THAN */ 137 {0x0E10u, 0xF700u, 0xF89Eu}, /* THO THAN */
138 {0x0000u, 0x0000u, 0x0000u} 138 {0x0000u, 0x0000u, 0x0000u}
139 }; 139 };
140 140
141 switch (action) { 141 switch (action) {
142 default: assert (false); HB_FALLTHROUGH;
143 case NOP: return u; 142 case NOP: return u;
144 case SD: pua_mappings = SD_mappings; break; 143 case SD: pua_mappings = SD_mappings; break;
145 case SDL: pua_mappings = SDL_mappings; break; 144 case SDL: pua_mappings = SDL_mappings; break;
146 case SL: pua_mappings = SL_mappings; break; 145 case SL: pua_mappings = SL_mappings; break;
147 case RD: pua_mappings = RD_mappings; break; 146 case RD: pua_mappings = RD_mappings; break;
148 } 147 }
149 for (; pua_mappings->u; pua_mappings++) 148 for (; pua_mappings->u; pua_mappings++)
150 if (pua_mappings->u == u) 149 if (pua_mappings->u == u)
151 { 150 {
152 hb_codepoint_t glyph; 151 hb_codepoint_t glyph;
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 NULL, /* data_destroy */ 372 NULL, /* data_destroy */
374 preprocess_text_thai, 373 preprocess_text_thai,
375 NULL, /* postprocess_glyphs */ 374 NULL, /* postprocess_glyphs */
376 HB_OT_SHAPE_NORMALIZATION_MODE_DEFAULT, 375 HB_OT_SHAPE_NORMALIZATION_MODE_DEFAULT,
377 NULL, /* decompose */ 376 NULL, /* decompose */
378 NULL, /* compose */ 377 NULL, /* compose */
379 NULL, /* setup_masks */ 378 NULL, /* setup_masks */
380 HB_OT_SHAPE_ZERO_WIDTH_MARKS_BY_GDEF_LATE, 379 HB_OT_SHAPE_ZERO_WIDTH_MARKS_BY_GDEF_LATE,
381 false,/* fallback_position */ 380 false,/* fallback_position */
382 }; 381 };
OLDNEW
« no previous file with comments | « third_party/harfbuzz-ng/src/hb-ot-shape-complex-private.hh ('k') | third_party/harfbuzz-ng/src/hb-ot-shape-complex-use.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698