summaryrefslogtreecommitdiff
path: root/lispref
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1997-06-13 00:52:37 +0000
committerRichard M. Stallman <rms@gnu.org>1997-06-13 00:52:37 +0000
commit552a56973aa072b3b69ad51ba9941c5aef24682a (patch)
tree2a4a26a6b7067ba19a90042bef8296f853c18ede /lispref
parentad68ecd50b87f9e66e990713d10bc6537285e0b5 (diff)
downloademacs-552a56973aa072b3b69ad51ba9941c5aef24682a.tar.gz
Add make-face-bold/italic and unbold/unitalic.
Diffstat (limited to 'lispref')
-rw-r--r--lispref/display.texi32
1 files changed, 32 insertions, 0 deletions
diff --git a/lispref/display.texi b/lispref/display.texi
index ae91f450924..dfc7877d1c9 100644
--- a/lispref/display.texi
+++ b/lispref/display.texi
@@ -1006,6 +1006,38 @@ This function sets the font of face @var{face}. The argument @var{font}
should be a string.
@end defun
+@defun make-face-bold face &optional frame noerror
+Make face @var{face} bold, by setting its font to the bold variant of
+the font it is now using. If @var{noerror} is non-@code{nil}, return
+@code{nil} on failure; otherwise, that signals an error.
+@end defun
+
+@defun make-face-italic face &optional frame noerror
+Make face @var{face} italic, by setting its font to the italic variant of
+the font it is now using. If @var{noerror} is non-@code{nil}, return
+@code{nil} on failure; otherwise, that signals an error.
+@end defun
+
+@defun make-face-bold-italic face &optional frame noerror
+Make face @var{face} bold and italic, by setting its font to the bold
+italic variant of the font it is now using. If @var{noerror} is
+non-@code{nil}, return @code{nil} on failure; otherwise, that signals an
+error.
+@end defun
+
+@defun make-face-unbold face &optional frame noerror
+Make face @var{face} not bold, by setting its font to the medium variant
+of the font it is now using. If @var{noerror} is non-@code{nil}, return
+@code{nil} on failure; otherwise, that signals an error.
+@end defun
+
+@defun make-face-unitalic face &optional frame noerror
+Make face @var{face} italic, by setting its font to the non-slanted
+variant of the font it is now using. If @var{noerror} is
+non-@code{nil}, return @code{nil} on failure; otherwise, that signals an
+error.
+@end defun
+
@defun set-face-underline-p face underline-p &optional frame
This function sets the underline attribute of face @var{face}.
Non-@code{nil} means do underline; @code{nil} means don't.