comparison src/fontset.c @ 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 0a677c35ad99
children 24af4ff8f7b6
comparison
equal deleted inserted replaced
28765:bd9ee005f206 28766:da7e00e4eaa6
653 else 653 else
654 { 654 {
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. */
663 for (list = Vfont_encoding_alist; CONSP (list); list = XCDR (list)) 665 for (list = Vfont_encoding_alist; CONSP (list); list = XCDR (list))
664 { 666 {