X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=man%2Fxemacs%2Fcustom.texi;h=5aeef5d8322a0763f65ea6af9a9ab3f83940c3de;hb=7ab64bbad77deafc3d7251761292a0edeec74bc6;hp=84ea5fbc463c887783a004eb82032da68a5c5255;hpb=dbf2768f7b146e97e37a27316f70bb313f1acf15;p=chise%2Fxemacs-chise.git- diff --git a/man/xemacs/custom.texi b/man/xemacs/custom.texi index 84ea5fb..5aeef5d 100644 --- a/man/xemacs/custom.texi +++ b/man/xemacs/custom.texi @@ -465,6 +465,9 @@ before the attribute name indicates whether the attribute is attribute by invoking that field. When the attribute is enabled, you can change the attribute value in the usual ways. +@xref{Faces}, for description of how @code{face-frob-from-locale-first} +variable affects changing @samp{Bold} and @samp{Italic} attributes. + @c Is this true for XEmacs? @c On a black-and-white display, the colors you can use for the @c background are @samp{black}, @samp{white}, @samp{gray}, @samp{gray1}, @@ -1992,11 +1995,6 @@ Change the foreground color of the given @var{face}. Change whether the given @var{face} is underlined. @end table -@findex make-face-bold -@findex make-face-bold-italic -@findex make-face-italic -@findex make-face-unbold -@findex make-face-unitalic @findex make-face-larger @findex make-face-smaller @@ -2009,6 +2007,34 @@ When calling this from a program, you can supply the optional argument @var{frame} to specify which frame is affected; otherwise, all frames are affected. +@findex make-face-bold +@findex make-face-bold-italic +@findex make-face-italic +@findex make-face-unbold +@findex make-face-unitalic +@vindex face-frob-from-locale-first +The work of @code{make-face-bold}, @code{make-face-bold-italic}, +@code{make-face-italic}, @code{make-face-unbold}, +@code{make-face-unitalic} functions is affected by +@code{face-frob-from-locale-first} variable. If it is @code{nil}, those +functions first try to manipulate device specific data like X font names +to obtain the desired font face specification. This may be unsuitable +in environments using different font face specifications for different +frames, non-Mule environments in particular. + +If the variable is non-@code{nil}, those functions first try to figure +out whether the face font is the same as one of predefined faces: +@code{default}, @code{bold}, @code{italic}, @code{bold-italic}. If it +is the same, then the new face font specification is set to be the same +as that of a corresponding predefined face. Thus if the predefined face +is set up properly for different frames, the same will hold for the face +being changed by the functions. This is the behavior one might desire +in non-Mule environments mentioned above: face being changed still looks +right in all frames. + +How predefined faces might be set up for different frames in such an +environments is described in @ref{Face Resources}. + @findex set-face-background You can set the background color of the specified @var{face} with the function @code{set-face-background}. The argument @code{color} should @@ -2080,7 +2106,7 @@ run both variants. Starting with XEmacs 21, XEmacs uses the class @samp{XEmacs} if it finds any XEmacs resources in the resource database when the X connection is initialized. Otherwise, it will use the class @samp{Emacs} for -backwards compatibility. The variable @var{x-emacs-application-class} +backwards compatibility. The variable @code{x-emacs-application-class} may be consulted to determine the application class being used. The examples in this section assume the application class is @samp{Emacs}.