diff options
| author | Eli Zaretskii | 2019-11-02 12:41:51 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2019-11-02 12:41:51 +0200 |
| commit | cacd58463b9265ab737a85cceb502cd8538d3c9b (patch) | |
| tree | 6be37a89f9e8fa33ce07d01816cea8b8b3e4338b /lisp | |
| parent | 5a778d504fdbc4fd729ff2cc80be0ca5a68679b6 (diff) | |
| download | emacs-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.el | 11 |
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. |
| 891 | The format of the font varies based on the font system in used, | 891 | FONT can be a string, a font spec, a font entity, a font object, |
| 892 | but it can commonly be an X logical font description (XLFD) | 892 | or a fontset. However, interactively, only strings are accepted. |
| 893 | string, or a simpler XFD string like \"courier:size=10\". | 893 | The format of the font string specification varies based on the font |
| 894 | system in use, but it can commonly be an X Logical Font | ||
| 895 | Description (XLFD) string, or a simpler string like \"Courier-10\" | ||
| 896 | or \"courier:size=10\". | ||
| 894 | 897 | ||
| 895 | FRAME nil or not specified means change face on all frames. | 898 | FRAME nil or not specified means change face on all frames. |
| 896 | This sets the attributes `:family', `:foundry', `:width', | 899 | This sets the attributes `:family', `:foundry', `:width', |