changeset 28766:da7e00e4eaa6

(fs_load_font): By default, use 0x00..0x7f for ASCII. Check Vfont_encoding_alist against the full name of the opened font.
author Kenichi Handa <handa@m17n.org>
date Mon, 01 May 2000 00:57:23 +0000
parents bd9ee005f206
children a723efe4f841
files src/fontset.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/fontset.c	Mon May 01 00:55:28 2000 +0000
+++ b/src/fontset.c	Mon May 01 00:57:23 2000 +0000
@@ -655,8 +655,10 @@
       /* The font itself doesn't have information about encoding.  */
       int i;
 
-      /* At first, set 1 (means 0xA0..0xFF) as the default.  */
-      fontp->encoding[0] = 1;
+      fontname = fontp->full_name;
+      /* By default, encoding of ASCII chars is 0 (i.e. 0x00..0x7F),
+	 others is 1 (i.e. 0x80..0xFF).  */
+      fontp->encoding[0] = 0;
       for (i = MIN_CHARSET_OFFICIAL_DIMENSION1; i <= MAX_CHARSET; i++)
 	fontp->encoding[i] = 1;
       /* Then override them by a specification in Vfont_encoding_alist.  */