comparison lispref/display.texi @ 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 ec5f48fe0320
children 66d807bdc5b4
comparison
equal deleted inserted replaced
18233:c1e30dd29cb1 18234:2e66f4ee4ca8
1004 @defun set-face-font face font &optional frame 1004 @defun set-face-font face font &optional frame
1005 This function sets the font of face @var{face}. The argument @var{font} 1005 This function sets the font of face @var{face}. The argument @var{font}
1006 should be a string. 1006 should be a string.
1007 @end defun 1007 @end defun
1008 1008
1009 @defun make-face-bold face &optional frame noerror
1010 Make face @var{face} bold, by setting its font to the bold variant of
1011 the font it is now using. If @var{noerror} is non-@code{nil}, return
1012 @code{nil} on failure; otherwise, that signals an error.
1013 @end defun
1014
1015 @defun make-face-italic face &optional frame noerror
1016 Make face @var{face} italic, by setting its font to the italic variant of
1017 the font it is now using. If @var{noerror} is non-@code{nil}, return
1018 @code{nil} on failure; otherwise, that signals an error.
1019 @end defun
1020
1021 @defun make-face-bold-italic face &optional frame noerror
1022 Make face @var{face} bold and italic, by setting its font to the bold
1023 italic variant of the font it is now using. If @var{noerror} is
1024 non-@code{nil}, return @code{nil} on failure; otherwise, that signals an
1025 error.
1026 @end defun
1027
1028 @defun make-face-unbold face &optional frame noerror
1029 Make face @var{face} not bold, by setting its font to the medium variant
1030 of the font it is now using. If @var{noerror} is non-@code{nil}, return
1031 @code{nil} on failure; otherwise, that signals an error.
1032 @end defun
1033
1034 @defun make-face-unitalic face &optional frame noerror
1035 Make face @var{face} italic, by setting its font to the non-slanted
1036 variant of the font it is now using. If @var{noerror} is
1037 non-@code{nil}, return @code{nil} on failure; otherwise, that signals an
1038 error.
1039 @end defun
1040
1009 @defun set-face-underline-p face underline-p &optional frame 1041 @defun set-face-underline-p face underline-p &optional frame
1010 This function sets the underline attribute of face @var{face}. 1042 This function sets the underline attribute of face @var{face}.
1011 Non-@code{nil} means do underline; @code{nil} means don't. 1043 Non-@code{nil} means do underline; @code{nil} means don't.
1012 @end defun 1044 @end defun
1013 1045