changeset 23023:720d197458cf

(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.
author Kenichi Handa <handa@m17n.org>
date Sat, 15 Aug 1998 01:28:14 +0000
parents 2dc474eaa693
children a9a3f2620318
files src/xterm.c
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/xterm.c	Sat Aug 15 01:28:14 1998 +0000
+++ b/src/xterm.c	Sat Aug 15 01:28:14 1998 +0000
@@ -580,6 +580,10 @@
       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 @@
 	  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))