aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorEli Zaretskii2019-11-02 12:41:51 +0200
committerEli Zaretskii2019-11-02 12:41:51 +0200
commitcacd58463b9265ab737a85cceb502cd8538d3c9b (patch)
tree6be37a89f9e8fa33ce07d01816cea8b8b3e4338b /lisp
parent5a778d504fdbc4fd729ff2cc80be0ca5a68679b6 (diff)
downloademacs-cacd58463b9265ab737a85cceb502cd8538d3c9b.tar.gz
emacs-cacd58463b9265ab737a85cceb502cd8538d3c9b.zip
Improve documentation of 'set-face-font'
* lisp/faces.el (set-face-font): * doc/emacs/frames.texi (Fonts): * doc/lispref/display.texi (Face Attributes) (Attribute Functions): Clarify and correct the documentation of set-face-font and related descriptions of font specifications. (Bug#14647)
Diffstat (limited to 'lisp')
-rw-r--r--lisp/faces.el11
1 files changed, 7 insertions, 4 deletions
diff --git a/lisp/faces.el b/lisp/faces.el
index 75753ecefc9..dc5bcca7609 100644
--- a/lisp/faces.el
+++ b/lisp/faces.el
@@ -887,10 +887,13 @@ Use `set-face-attribute' for finer control of font weight and slant."
887 887
888 888
889(defun set-face-font (face font &optional frame) 889(defun set-face-font (face font &optional frame)
890 "Change font-related attributes of FACE to those of FONT (a string). 890 "Change font-related attributes of FACE to those of FONT.
891The format of the font varies based on the font system in used, 891FONT can be a string, a font spec, a font entity, a font object,
892but it can commonly be an X logical font description (XLFD) 892or a fontset. However, interactively, only strings are accepted.
893string, or a simpler XFD string like \"courier:size=10\". 893The format of the font string specification varies based on the font
894system in use, but it can commonly be an X Logical Font
895Description (XLFD) string, or a simpler string like \"Courier-10\"
896or \"courier:size=10\".
894 897
895FRAME nil or not specified means change face on all frames. 898FRAME nil or not specified means change face on all frames.
896This sets the attributes `:family', `:foundry', `:width', 899This sets the attributes `:family', `:foundry', `:width',