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

Side by Side Diff: third_party/harfbuzz/src/harfbuzz-myanmar.c

Issue 10824101: Harfbuzz roll 3ab7b37bdebf0f8773493a1fee910b151c4de30f (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: rebased Created 8 years, 4 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
« no previous file with comments | « third_party/harfbuzz/src/harfbuzz-gsub.c ('k') | third_party/harfbuzz/src/harfbuzz-tibetan.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) 2 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
3 * 3 *
4 * This is part of HarfBuzz, an OpenType Layout engine library. 4 * This is part of HarfBuzz, an OpenType Layout engine 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 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 continue; 352 continue;
353 if (i == medial_ra || i == kinzi) { 353 if (i == medial_ra || i == kinzi) {
354 ++i; 354 ++i;
355 continue; 355 continue;
356 } 356 }
357 357
358 cc = getMyanmarCharClass(uc[i]); 358 cc = getMyanmarCharClass(uc[i]);
359 if (kinzi >= 0 && i > base && (cc & Mymr_CF_AFTER_KINZI)) { 359 if (kinzi >= 0 && i > base && (cc & Mymr_CF_AFTER_KINZI)) {
360 reordered[len] = Mymr_C_NGA; 360 reordered[len] = Mymr_C_NGA;
361 reordered[len+1] = Mymr_C_VIRAMA; 361 reordered[len+1] = Mymr_C_VIRAMA;
362 if (len > 0) 362 » if (len > 0)
363 properties[len-1] = AboveForm; 363 » properties[len-1] = AboveForm;
364 properties[len] = AboveForm; 364 properties[len] = AboveForm;
365 len += 2; 365 len += 2;
366 kinzi = -1; 366 kinzi = -1;
367 } 367 }
368 368
369 if (lastWasVirama) { 369 if (lastWasVirama) {
370 int prop = 0; 370 int prop = 0;
371 switch(cc & Mymr_CF_POS_MASK) { 371 switch(cc & Mymr_CF_POS_MASK) {
372 case Mymr_CF_POS_BEFORE: 372 case Mymr_CF_POS_BEFORE:
373 prop = PreForm; 373 prop = PreForm;
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
530 i++; 530 i++;
531 while (i < boundary) { 531 while (i < boundary) {
532 attributes[i].charStop = FALSE; 532 attributes[i].charStop = FALSE;
533 ++uc; 533 ++uc;
534 ++i; 534 ++i;
535 } 535 }
536 assert(i == boundary); 536 assert(i == boundary);
537 } 537 }
538 } 538 }
539 539
OLDNEW
« no previous file with comments | « third_party/harfbuzz/src/harfbuzz-gsub.c ('k') | third_party/harfbuzz/src/harfbuzz-tibetan.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698