comparison lispref/frames.texi @ 45744:75e9d527da2b

display-supports-face-attributes-p
author Miles Bader <miles@gnu.org>
date Tue, 11 Jun 2002 01:50:15 +0000
parents 5341e03c6370
children 4964699e51b4
comparison
equal deleted inserted replaced
45743:9f2bfbcfdb41 45744:75e9d527da2b
1 @c -*-texinfo-*- 1 @c -*-texinfo-*-
2 @c This is part of the GNU Emacs Lisp Reference Manual. 2 @c This is part of the GNU Emacs Lisp Reference Manual.
3 @c Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1998, 1999 3 @c Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1998, 1999, 2002
4 @c Free Software Foundation, Inc. 4 @c Free Software Foundation, Inc.
5 @c See the file elisp.texi for copying conditions. 5 @c See the file elisp.texi for copying conditions.
6 @setfilename ../info/frames 6 @setfilename ../info/frames
7 @node Frames, Positions, Windows, Top 7 @node Frames, Positions, Windows, Top
8 @chapter Frames 8 @chapter Frames
1715 @tindex display-grayscale-p 1715 @tindex display-grayscale-p
1716 This function returns @code{t} if the screen can display shades of gray. 1716 This function returns @code{t} if the screen can display shades of gray.
1717 (All color displays can do this.) 1717 (All color displays can do this.)
1718 @end defun 1718 @end defun
1719 1719
1720 @anchor{Display Face Attribute Testing}
1721 @defun display-supports-face-attributes-p attributes &optional display
1722 @tindex display-supports-face-attributes-p
1723 This function returns non-@code{nil} if all the face attributes in
1724 @var{attributes} are supported (@pxref{Face Attributes}).
1725
1726 The definition of `supported' is somewhat heuristic, but basically
1727 means that a face containing all the attributes in @var{attributes},
1728 when merged with the default face for display, can be represented in a
1729 way that's
1730
1731 @enumerate
1732 @item
1733 different in appearance than the default face, and
1734
1735 @item
1736 `close in spirit' to what the attributes specify, if not exact.
1737 @end enumerate
1738
1739 Point (2) implies that a @code{:weight black} attribute will be
1740 satisfied by any display that can display bold, as will
1741 @code{:foreground "yellow"} as long as some yellowish color can be
1742 displayed, but @code{:slant italic} will @emph{not} be satisified by
1743 the tty display code's automatic substitution of a `dim' face for
1744 italic.
1745 @end defun
1746
1720 @defun display-selections-p &optional display 1747 @defun display-selections-p &optional display
1721 @tindex display-selections-p 1748 @tindex display-selections-p
1722 This function returns @code{t} if @var{display} supports selections. 1749 This function returns @code{t} if @var{display} supports selections.
1723 Windowed displays normally support selections, but they may also be 1750 Windowed displays normally support selections, but they may also be
1724 supported in some other cases. 1751 supported in some other cases.