[HarfBuzz] harfbuzz: Branch 'master'

Lars Knoll lars at kemper.freedesktop.org
Tue Feb 1 06:30:30 PST 2011


 src/harfbuzz-hebrew.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 213bd693a55c04ef25f5e8de5f6feefa9473a30a
Author: Lars Knoll <lars.knoll at nokia.com>
Date:   Mon Jan 31 15:57:53 2011 +0100

    Fix hebrew shaping of characters with multiple diacritics.
    
    The old code would work for a maximum of one diacritic and
    insert dotted circles in valid syllables.

diff --git a/src/harfbuzz-hebrew.c b/src/harfbuzz-hebrew.c
index 67029be..b5431a5 100644
--- a/src/harfbuzz-hebrew.c
+++ b/src/harfbuzz-hebrew.c
@@ -84,7 +84,7 @@ HB_Bool HB_HebrewShape(HB_ShaperItem *shaper_item)
         logClusters[0] = 0;
 
         for (i = 1; i < shaper_item->item.length; ++i) {
-            hb_uint16 base = shapedChars[slen-1];
+            hb_uint16 base = shapedChars[cluster_start];
             hb_uint16 shaped = 0;
             HB_Bool invalid = FALSE;
             if (uc[i] == Dagesh) {
@@ -143,7 +143,7 @@ HB_Bool HB_HebrewShape(HB_ShaperItem *shaper_item)
             }
             if (shaped) {
                 if (shaper_item->font->klass->canRender(shaper_item->font, (HB_UChar16 *)&shaped, 1)) {
-                    shapedChars[slen-1] = shaped;
+                    shapedChars[cluster_start] = shaped;
                 } else
                     shaped = 0;
             }



More information about the HarfBuzz mailing list