(compose_glyph_string): Update prev->rface->rfont if the
authorhanda <handa>
Wed, 9 Nov 2005 12:37:39 +0000 (12:37 +0000)
committerhanda <handa>
Wed, 9 Nov 2005 12:37:39 +0000 (12:37 +0000)
glyph prev is also supported by the current flt.

src/draw.c

index 671acc8..2e5d6b8 100644 (file)
@@ -440,7 +440,11 @@ compose_glyph_string (MFrame *frame, MText *mt, int from, int to,
                                                   NULL, prev->c)
                        != MCHAR_INVALID_CODE));
                   start--, prev--)
-               prev->code = code;
+               if (prev->rface->rfont != this->rface->rfont)
+                 {
+                   prev->rface->rfont = this->rface->rfont;
+                   prev->code = code;
+                 }
 
              for (g++;
                   (g->type == GLYPH_CHAR