diff options
| author | Kenichi Handa | 2000-05-01 00:57:23 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2000-05-01 00:57:23 +0000 |
| commit | 40292c8a39d1a9c7283ed03ebb825b6b6a27cd0b (patch) | |
| tree | 992a3c1170029238df1c396a1b610b944af5144e /src | |
| parent | 0d7811edd01b98bf75f6eaad7e0c4b3b56f242b3 (diff) | |
| download | emacs-40292c8a39d1a9c7283ed03ebb825b6b6a27cd0b.tar.gz emacs-40292c8a39d1a9c7283ed03ebb825b6b6a27cd0b.zip | |
(fs_load_font): By default, use 0x00..0x7f for ASCII.
Check Vfont_encoding_alist against the full name of the opened
font.
Diffstat (limited to 'src')
| -rw-r--r-- | src/fontset.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/fontset.c b/src/fontset.c index 7d0e67983e7..aa92cf931c8 100644 --- a/src/fontset.c +++ b/src/fontset.c | |||
| @@ -655,8 +655,10 @@ fs_load_font (f, c, fontname, id, face) | |||
| 655 | /* The font itself doesn't have information about encoding. */ | 655 | /* The font itself doesn't have information about encoding. */ |
| 656 | int i; | 656 | int i; |
| 657 | 657 | ||
| 658 | /* At first, set 1 (means 0xA0..0xFF) as the default. */ | 658 | fontname = fontp->full_name; |
| 659 | fontp->encoding[0] = 1; | 659 | /* By default, encoding of ASCII chars is 0 (i.e. 0x00..0x7F), |
| 660 | others is 1 (i.e. 0x80..0xFF). */ | ||
| 661 | fontp->encoding[0] = 0; | ||
| 660 | for (i = MIN_CHARSET_OFFICIAL_DIMENSION1; i <= MAX_CHARSET; i++) | 662 | for (i = MIN_CHARSET_OFFICIAL_DIMENSION1; i <= MAX_CHARSET; i++) |
| 661 | fontp->encoding[i] = 1; | 663 | fontp->encoding[i] = 1; |
| 662 | /* Then override them by a specification in Vfont_encoding_alist. */ | 664 | /* Then override them by a specification in Vfont_encoding_alist. */ |