Commit ab29c43b authored by Kenichi Handa's avatar Kenichi Handa
Browse files

(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.
parent ee8ddc1c
......@@ -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))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment