From ab29c43b51181a352461867ab822814cf48ee7ec Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Sat, 15 Aug 1998 01:28:14 +0000 Subject: [PATCH] (dumpglyphs): If x_display_unibyte_char_with_fontset is nonzero, convert a unibyte 8-bit char to a multibyte char and display it by a font listed in the current fontset. --- src/xterm.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/xterm.c b/src/xterm.c index 8ef162ab606..50058a58d9c 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -580,6 +580,10 @@ dumpglyphs (f, left, top, gp, n, hl, just_foreground, cmpcharp) GLYPH_FOLLOW_ALIASES (tbase, tlen, g); cf = (cmpcharp ? cmpcharp->face_work : FAST_GLYPH_FACE (g)); ch = FAST_GLYPH_CHAR (g); + if (x_display_unibyte_char_with_fontset + && SINGLE_BYTE_CHAR_P (ch) + && ch >= 160) + ch = unibyte_char_to_multibyte (ch); if (gidx == 0) XSETFASTINT (first_ch, ch); charset = CHAR_CHARSET (ch); if (charset == CHARSET_COMPOSITION) @@ -617,6 +621,10 @@ dumpglyphs (f, left, top, gp, n, hl, just_foreground, cmpcharp) g = *gp; GLYPH_FOLLOW_ALIASES (tbase, tlen, g); ch = FAST_GLYPH_CHAR (g); + if (x_display_unibyte_char_with_fontset + && SINGLE_BYTE_CHAR_P (ch) + && ch >= 160) + ch = unibyte_char_to_multibyte (ch); SPLIT_CHAR (ch, this_charset, c1, c2); if (this_charset != charset || (cmpcharp == NULL && FAST_GLYPH_FACE (g) != cf)) -- 2.39.5