From e9e01461b7abf0ba7c968737c4a22c33b2c3e6d9 Mon Sep 17 00:00:00 2001 From: handa Date: Mon, 30 Nov 2009 11:47:12 +0000 Subject: [PATCH] (mfont__get_glyph_id): Encode g->c instead of g->code. --- src/font.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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; -- 1.7.10.4