changeset 18234:2e66f4ee4ca8

Add make-face-bold/italic and unbold/unitalic.
author Richard M. Stallman <rms@gnu.org>
date Fri, 13 Jun 1997 00:52:37 +0000
parents c1e30dd29cb1
children 43ce16d5f31e
files lispref/display.texi
diffstat 1 files changed, 32 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lispref/display.texi	Fri Jun 13 00:51:01 1997 +0000
+++ b/lispref/display.texi	Fri Jun 13 00:52:37 1997 +0000
@@ -1006,6 +1006,38 @@
 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.