aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1997-05-31 02:03:43 +0000
committerRichard M. Stallman1997-05-31 02:03:43 +0000
commit8ff102bda572ce9058b4a4bcf2253bd72a68db04 (patch)
treecdd901542635ebf4d7f223db36334737048bb136
parente5dfabb4897fc40ec5f3a282981f40b3e8049539 (diff)
downloademacs-8ff102bda572ce9058b4a4bcf2253bd72a68db04.tar.gz
emacs-8ff102bda572ce9058b4a4bcf2253bd72a68db04.zip
(x_load_font): Use macro FONT_ENCODING_NOT_DECIDED.
-rw-r--r--src/xterm.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/src/xterm.c b/src/xterm.c
index b774a00be39..76ebbe641d2 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -6517,17 +6517,19 @@ x_load_font (f, fontname, size)
6517 /* The slot `encoding' specifies how to map a character 6517 /* The slot `encoding' specifies how to map a character
6518 code-points (0x20..0x7F or 0x2020..0x7F7F) of each charset to 6518 code-points (0x20..0x7F or 0x2020..0x7F7F) of each charset to
6519 the font code-points (0:0x20..0x7F, 1:0xA0..0xFF, 0:0x2020..0x7F7F, 6519 the font code-points (0:0x20..0x7F, 1:0xA0..0xFF, 0:0x2020..0x7F7F,
6520 1:0xA0A0..0xFFFF, 3:0x20A0..0x7FFF, or 2:0xA020..0xFF7F). For the 6520 the font code-points (0:0x20..0x7F, 1:0xA0..0xFF,
6521 moment, we don't know which charset uses this font. So, we set 6521 0:0x2020..0x7F7F, 1:0xA0A0..0xFFFF, 3:0x20A0..0x7FFF, or
6522 informatoin in fontp->encoding[1] which is never used by any 6522 2:0xA020..0xFF7F). For the moment, we don't know which charset
6523 charset. If mapping can't be decided, set 4. */ 6523 uses this font. So, we set informatoin in fontp->encoding[1]
6524 which is never used by any charset. If mapping can't be
6525 decided, set FONT_ENCODING_NOT_DECIDED. */
6524 fontp->encoding[1] 6526 fontp->encoding[1]
6525 = (font->max_byte1 == 0 6527 = (font->max_byte1 == 0
6526 /* 1-byte font */ 6528 /* 1-byte font */
6527 ? (font->min_char_or_byte2 < 0x80 6529 ? (font->min_char_or_byte2 < 0x80
6528 ? (font->max_char_or_byte2 < 0x80 6530 ? (font->max_char_or_byte2 < 0x80
6529 ? 0 /* 0x20..0x7F */ 6531 ? 0 /* 0x20..0x7F */
6530 : 4) /* 0x20..0xFF (can't decide) */ 6532 : FONT_ENCODING_NOT_DECIDED) /* 0x20..0xFF */
6531 : 1) /* 0xA0..0xFF */ 6533 : 1) /* 0xA0..0xFF */
6532 /* 2-byte font */ 6534 /* 2-byte font */
6533 : (font->min_byte1 < 0x80 6535 : (font->min_byte1 < 0x80
@@ -6535,13 +6537,13 @@ x_load_font (f, fontname, size)
6535 ? (font->min_char_or_byte2 < 0x80 6537 ? (font->min_char_or_byte2 < 0x80
6536 ? (font->max_char_or_byte2 < 0x80 6538 ? (font->max_char_or_byte2 < 0x80
6537 ? 0 /* 0x2020..0x7F7F */ 6539 ? 0 /* 0x2020..0x7F7F */
6538 : 4) /* 0x2020..0x7FFF (can't decide) */ 6540 : FONT_ENCODING_NOT_DECIDED) /* 0x2020..0x7FFF */
6539 : 3) /* 0x20A0..0x7FFF */ 6541 : 3) /* 0x20A0..0x7FFF */
6540 : 4) /* 0x20??..0xA0?? (can't decide) */ 6542 : FONT_ENCODING_NOT_DECIDED) /* 0x20??..0xA0?? */
6541 : (font->min_char_or_byte2 < 0x80 6543 : (font->min_char_or_byte2 < 0x80
6542 ? (font->max_char_or_byte2 < 0x80 6544 ? (font->max_char_or_byte2 < 0x80
6543 ? 2 /* 0xA020..0xFF7F */ 6545 ? 2 /* 0xA020..0xFF7F */
6544 : 4) /* 0xA020..0xFFFF (can't decide) */ 6546 : FONT_ENCODING_NOT_DECIDED) /* 0xA020..0xFFFF */
6545 : 1))); /* 0xA0A0..0xFFFF */ 6547 : 1))); /* 0xA0A0..0xFFFF */
6546 6548
6547 fontp->baseline_offset 6549 fontp->baseline_offset