Lines Matching +defs:face +defs:background
325 /* Identify a run of glyphs with the same face. */
333 /* Turn appearance modes of the face of the run on. */
485 /* Turn appearances of face FACE_ID on tty frame F on. */
493 struct face *face = FACE_FROM_ID (f, face_id);
495 xassert (face != NULL);
499 if (face->foreground != FACE_TTY_DEFAULT_FG_COLOR
500 && face->foreground != FACE_TTY_DEFAULT_COLOR)
501 char_attr = (char_attr & 0xfff0) + (face->foreground % 16);
503 if (face->background != FACE_TTY_DEFAULT_BG_COLOR
504 && face->background != FACE_TTY_DEFAULT_COLOR)
505 char_attr = (char_attr & 0xff0f) + ((face->background % 16) << 4);
509 and background of 0. Need a better way around this - for now detect
514 if (face->tty_reverse_p)
679 (foreground, background)
681 Lisp_Object background;
683 char_attr_normal = XFASTINT (foreground) + (XFASTINT (background) << 4);