@@ -2248,10 +2248,8 @@ is equivalent to a Lisp symbol with the same name.}. Named faces are
22482248defined using the @code {defface } macro (@pxref {Defining Faces }).
22492249Emacs comes with several standard named faces (@pxref {Basic Faces }).
22502250
2251- Many parts of Emacs require named faces, and do not accept
2252- anonymous faces. These include the functions documented in
2253- @ref {Attribute Functions }, and the variable @code {font-lock-keywords }
2254- (@pxref {Search-based Fontification }). Unless otherwise stated, we
2251+ Some parts of Emacs require named faces (e.g., the functions
2252+ documented in @ref {Attribute Functions }). Unless otherwise stated, we
22552253will use the term @dfn {face } to refer only to named faces.
22562254
22572255@defun facep object
@@ -2467,16 +2465,18 @@ or a fontset. @xref{Low-Level Font}, for information about font
24672465objects, font specs, and font entities. @xref {Fontsets }, for
24682466information about fontsets.
24692467
2470- When specifying this attribute using @code {set-face-attribute }
2471- (@pxref {Attribute Functions }), you may also supply a font spec, a font
2472- entity, or a string. Emacs converts such values to an appropriate
2473- font object, and stores that font object as the actual attribute
2474- value. If you specify a string, the contents of the string should be
2475- a font name (@pxref {Fonts ,,, emacs , The GNU Emacs Manual }); if the
2476- font name is an XLFD containing wildcards, Emacs chooses the first
2477- font matching those wildcards. Specifying this attribute also changes
2478- the values of the @code {:family }, @code {:foundry }, @code {:width },
2479- @code {:height }, @code {:weight }, and @code {:slant } attributes.
2468+ @anchor {face-font-attribute }
2469+ When specifying this attribute using @code {set-face-attribute } or
2470+ @code {set-face-font } (@pxref {Attribute Functions }), you may also
2471+ supply a font spec, a font entity, or a string. Emacs converts such
2472+ values to an appropriate font object, and stores that font object as
2473+ the actual attribute value. If you specify a string, the contents of
2474+ the string should be a font name (@pxref {Fonts ,,, emacs , The GNU Emacs
2475+ Manual }); if the font name is an XLFD containing wildcards, Emacs
2476+ chooses the first font matching those wildcards. Specifying this
2477+ attribute also changes the values of the @code {:family },
2478+ @code {:foundry }, @code {:width }, @code {:height }, @code {:weight }, and
2479+ @code {:slant } attributes.
24802480
24812481@cindex inheritance , for faces
24822482@item :inherit
@@ -2834,7 +2834,14 @@ This sets the @code{:stipple} attribute of @var{face} to
28342834@end deffn
28352835
28362836@deffn Command set-face-font face font &optional frame
2837- This sets the @code {:font } attribute of @var {face } to @var {font }.
2837+ Change the font-related attributes of @var {face } to those of
2838+ @var {font } (a string or a font object). @xref {face-font-attribute },
2839+ for the supported formats of the @var {font } argument. This function
2840+ sets the attribute @code {:font } of the face, and indirectly also the
2841+ @code {:family }, @code {:foundry }, @code {:width }, @code {:height },
2842+ @code {:weight }, and @code {:slant } attributes, as defined by the font.
2843+ If @var {frame } is non-@code {nil }, only change the attributes on the
2844+ specified frame.
28382845@end deffn
28392846
28402847@defun set-face-bold face bold-p &optional frame
@@ -3661,7 +3668,10 @@ The font name (a string), in either XLFD, Fontconfig, or GTK+ format.
36613668@itemx :slant
36623669@itemx :width
36633670These have the same meanings as the face attributes of the same name.
3664- @xref {Face Attributes }.
3671+ @xref {Face Attributes }. @code {:family } and @code {:foundry } are
3672+ strings, while the other three are symbols. As example values,
3673+ @code {:slant } may be @code {italic }, @code {:weight } may be @code {bold }
3674+ and @code {:width } may be @code {normal }.
36653675
36663676@item :size
36673677The font size--- either a non-negative integer that specifies the pixel
0 commit comments