diff options
| author | Kenichi Handa | 1998-08-15 01:28:14 +0000 |
|---|---|---|
| committer | Kenichi Handa | 1998-08-15 01:28:14 +0000 |
| commit | ab29c43b51181a352461867ab822814cf48ee7ec (patch) | |
| tree | 898f5cc279be0ce1a5388a9705a09753004ab018 /src | |
| parent | ee8ddc1c901735a94841d924f53b84f49d27e817 (diff) | |
| download | emacs-ab29c43b51181a352461867ab822814cf48ee7ec.tar.gz emacs-ab29c43b51181a352461867ab822814cf48ee7ec.zip | |
(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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xterm.c | 8 |
1 files changed, 8 insertions, 0 deletions
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) | |||
| 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) |
| @@ -617,6 +621,10 @@ dumpglyphs (f, left, top, gp, n, hl, just_foreground, cmpcharp) | |||
| 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)) |