comparison src/disptab.h @ 2725:507115aff66d

* xdisp.c (display_text_line): Apply faces to characters according to overlays and text properties; use compute_char_face to figure out what face to use, and where a new face starts. * xterm.c (dumpglyphs): Use the upper bits of the glyphs to decide which frame face to use. Call GLYPH_FOLLOW_ALIASES to make sure we're implementing the glyph table properly. If we're not using the default or mode line face, call intern_face to find a display face for the frame face selected by the glyph code. Implement underlining. Remove the `font' argument; we have to derive this from the frame and face anyway. Change all callers. * disptab.h (GLYPH_FOLLOW_ALIASES): New macro.
author Jim Blandy <jimb@redhat.com>
date Mon, 10 May 1993 00:16:34 +0000
parents a6d7c2f161cf
children e94a593c3952
comparison
equal deleted inserted replaced
2724:56a657acd984 2725:507115aff66d
61 61
62 /* Assuming that GLYPH_SIMPLE_P (BASE, LEN, G) is 1, 62 /* Assuming that GLYPH_SIMPLE_P (BASE, LEN, G) is 1,
63 return the alias for G. */ 63 return the alias for G. */
64 #define GLYPH_ALIAS(base, g) XINT (base[g]) 64 #define GLYPH_ALIAS(base, g) XINT (base[g])
65 65
66 /* Follow all aliases for G in the glyph table given by (BASE,
67 LENGTH), and set G to the final glyph. */
68 #define GLYPH_FOLLOW_ALIASES(base, length, g) \
69 while (GLYPH_ALIAS_P ((base), (length), (g))) \
70 (g) = GLYPH_ALIAS ((base), (g));
71
66 /* Assuming that GLYPH_SIMPLE_P (BASE, LEN, G) is 0, 72 /* Assuming that GLYPH_SIMPLE_P (BASE, LEN, G) is 0,
67 return the length and the address of the character-sequence 73 return the length and the address of the character-sequence
68 used for outputting GLYPH G. */ 74 used for outputting GLYPH G. */
69 #define GLYPH_LENGTH(base,g) XSTRING (base[g])->size 75 #define GLYPH_LENGTH(base,g) XSTRING (base[g])->size
70 #define GLYPH_STRING(base,g) XSTRING (base[g])->data 76 #define GLYPH_STRING(base,g) XSTRING (base[g])->data