OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |