From: handa Date: Sat, 8 Dec 2007 02:10:17 +0000 (+0000) Subject: (run_flt): Argument changed. X-Git-Tag: REL-1-5-0~12 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=635c1160fe53fadc948a743dafe2e8c1f4e03cd4;p=m17n%2Fm17n-lib.git (run_flt): Argument changed. (compose_glyph_string): Adjusted for the above change. --- diff --git a/src/draw.c b/src/draw.c index 94de623..c44000b 100644 --- a/src/draw.c +++ b/src/draw.c @@ -263,9 +263,10 @@ reorder_combining_chars (MGlyphString *gstring, int from, int to) #endif static int -run_flt (MGlyphString *gstring, int from, int to, MRealizedFont *rfont, - MSymbol layouter) +run_flt (MGlyphString *gstring, int from, int to, MRealizedFace *rface) { + MRealizedFont *rfont = rface->rfont; + MSymbol layouter = rface->layouter; MFLTGlyphString flt_gstr; MFLTFontForRealized font; MFLT *flt; @@ -313,6 +314,7 @@ run_flt (MGlyphString *gstring, int from, int to, MRealizedFont *rfont, g->g.rbearing >>= 6; g->g.xoff >>= 6; g->g.yoff >>= 6; + g->rface = rface; } return to; } @@ -556,8 +558,7 @@ compose_glyph_string (MFrame *frame, MText *mt, int from, int to, != MCHAR_INVALID_CODE)))); i++, g++) g->rface->rfont = this->rface->rfont; - i = run_flt (gstring, start, i, this->rface->rfont, - this->rface->layouter); + i = run_flt (gstring, start, i, this->rface); } else { @@ -569,7 +570,10 @@ compose_glyph_string (MFrame *frame, MText *mt, int from, int to, && g->rface->layouter == Mnil) i++, g++; if (start + 1 < i) - run_flt (gstring, start, i, this->rface->rfont, Mcombining); + { + this->rface->layouter = Mcombining; + run_flt (gstring, start, i, this->rface); + } else mfont__get_metric (gstring, start, i); }