From: handa Date: Mon, 30 Nov 2009 11:47:12 +0000 (+0000) Subject: (mfont__get_glyph_id): Encode g->c instead of g->code. X-Git-Tag: merge-to-XML~35 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=e9e01461b7abf0ba7c968737c4a22c33b2c3e6d9;p=m17n%2Fm17n-lib.git (mfont__get_glyph_id): Encode g->c instead of g->code. --- diff --git a/src/font.c b/src/font.c index 40782c8..ecd8c6b 100644 --- a/src/font.c +++ b/src/font.c @@ -1686,13 +1686,13 @@ mfont__get_glyph_id (MFLTFont *font, MFLTGlyphString *gstring, if (g->g.encoded) continue; if (mfont->source == MFONT_SOURCE_X && encoding->repertory_charset) - g->g.code = ENCODE_CHAR (encoding->repertory_charset, g->g.code); + g->g.code = ENCODE_CHAR (encoding->repertory_charset, g->g.c); else { unsigned code; if (encoding->encoding_charset) - code = ENCODE_CHAR (encoding->encoding_charset, g->g.code); + code = ENCODE_CHAR (encoding->encoding_charset, g->g.c); else code = g->g.code; @@ -1711,9 +1711,8 @@ mfont__get_glyph_id (MFLTFont *font, MFLTGlyphString *gstring, MFATAL (MERROR_FONT); } } - g->g.code - = (driver->encode_char) (rfont->frame, rfont->font, mfont, - g->g.code); + g->g.code = (driver->encode_char) (rfont->frame, rfont->font, + mfont, code); } } g->g.encoded = 1;