(compose_glyph_string): When the script `inherited' and
authorhanda <handa>
Wed, 1 Sep 2010 06:29:36 +0000 (06:29 +0000)
committerhanda <handa>
Wed, 1 Sep 2010 06:29:36 +0000 (06:29 +0000)
`common' can't be resolved, use "block" property of the character.

src/draw.c

index 5025759..f5b23cf 100644 (file)
@@ -483,6 +483,8 @@ compose_glyph_string (MFrame *frame, MText *mt, int from, int to,
                    break;
                  }
            }
+         if (this_script == Minherited || this_script == Mcommon)
+           this_script = (MSymbol) mchar_get_prop (c, Mblock);
        }
 
       pos = g->g.from;