comparison src/xterm.c @ 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 88334ee405a4
children 88fadff500be
comparison
equal deleted inserted replaced
23022:2dc474eaa693 23023:720d197458cf
578 int highest, lowest; 578 int highest, lowest;
579 579
580 GLYPH_FOLLOW_ALIASES (tbase, tlen, g); 580 GLYPH_FOLLOW_ALIASES (tbase, tlen, g);
581 cf = (cmpcharp ? cmpcharp->face_work : FAST_GLYPH_FACE (g)); 581 cf = (cmpcharp ? cmpcharp->face_work : FAST_GLYPH_FACE (g));
582 ch = FAST_GLYPH_CHAR (g); 582 ch = FAST_GLYPH_CHAR (g);
583 if (x_display_unibyte_char_with_fontset
584 && SINGLE_BYTE_CHAR_P (ch)
585 && ch >= 160)
586 ch = unibyte_char_to_multibyte (ch);
583 if (gidx == 0) XSETFASTINT (first_ch, ch); 587 if (gidx == 0) XSETFASTINT (first_ch, ch);
584 charset = CHAR_CHARSET (ch); 588 charset = CHAR_CHARSET (ch);
585 if (charset == CHARSET_COMPOSITION) 589 if (charset == CHARSET_COMPOSITION)
586 { 590 {
587 /* We must draw components of the composite character on the 591 /* We must draw components of the composite character on the
615 int this_charset, c1, c2; 619 int this_charset, c1, c2;
616 620
617 g = *gp; 621 g = *gp;
618 GLYPH_FOLLOW_ALIASES (tbase, tlen, g); 622 GLYPH_FOLLOW_ALIASES (tbase, tlen, g);
619 ch = FAST_GLYPH_CHAR (g); 623 ch = FAST_GLYPH_CHAR (g);
624 if (x_display_unibyte_char_with_fontset
625 && SINGLE_BYTE_CHAR_P (ch)
626 && ch >= 160)
627 ch = unibyte_char_to_multibyte (ch);
620 SPLIT_CHAR (ch, this_charset, c1, c2); 628 SPLIT_CHAR (ch, this_charset, c1, c2);
621 if (this_charset != charset 629 if (this_charset != charset
622 || (cmpcharp == NULL && FAST_GLYPH_FACE (g) != cf)) 630 || (cmpcharp == NULL && FAST_GLYPH_FACE (g) != cf))
623 break; 631 break;
624 632