summaryrefslogtreecommitdiff
path: root/src/xfaces.c
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2022-04-28 18:37:34 +0300
committerEli Zaretskii <eliz@gnu.org>2022-04-28 18:37:34 +0300
commitb3023de5431fc308e2a6db61ed4fdd18db785324 (patch)
treeca1c8f1adcde2d7192fe7991a672a89139f2610e /src/xfaces.c
parent904aaabb0516b98b6195b3e8a37ea85d50a8d185 (diff)
parent3b6338c8c351cce721f2f1aa115cadc401179d5c (diff)
downloademacs-b3023de5431fc308e2a6db61ed4fdd18db785324.tar.gz
emacs-b3023de5431fc308e2a6db61ed4fdd18db785324.tar.bz2
emacs-b3023de5431fc308e2a6db61ed4fdd18db785324.zip
Merge from origin/emacs-28
# Conflicts: # lisp/progmodes/xref.el
Diffstat (limited to 'src/xfaces.c')
-rw-r--r--src/xfaces.c28
1 files changed, 17 insertions, 11 deletions
diff --git a/src/xfaces.c b/src/xfaces.c
index c41782f4f38..8ebb33c5abd 100644
--- a/src/xfaces.c
+++ b/src/xfaces.c
@@ -1450,9 +1450,9 @@ enum xlfd_field
};
/* Order by which font selection chooses fonts. The default values
- mean `first, find a best match for the font width, then for the
- font height, then for weight, then for slant.' This variable can be
- set via set-face-font-sort-order. */
+ mean "first, find a best match for the font width, then for the
+ font height, then for weight, then for slant." This variable can be
+ set via 'internal-set-font-selection-order'. */
static int font_sort_order[4];
@@ -1503,16 +1503,22 @@ If FAMILY is omitted or nil, list all families.
Otherwise, FAMILY must be a string, possibly containing wildcards
`?' and `*'.
If FRAME is omitted or nil, use the selected frame.
+
Each element of the result is a vector [FAMILY WIDTH POINT-SIZE WEIGHT
SLANT FIXED-P FULL REGISTRY-AND-ENCODING].
-FAMILY is the font family name. POINT-SIZE is the size of the
-font in 1/10 pt. WIDTH, WEIGHT, and SLANT are symbols describing the
-width, weight and slant of the font. These symbols are the same as for
-face attributes. FIXED-P is non-nil if the font is fixed-pitch.
-FULL is the full name of the font, and REGISTRY-AND-ENCODING is a string
-giving the registry and encoding of the font.
-The result list is sorted according to the current setting of
-the face font sort order. */)
+
+FAMILY is the font family name.
+POINT-SIZE is the size of the font in 1/10 pt.
+WIDTH, WEIGHT, and SLANT are symbols describing the width, weight
+ and slant of the font. These symbols are the same as for face
+ attributes, see `set-face-attribute'.
+FIXED-P is non-nil if the font is fixed-pitch.
+FULL is the full name of the font.
+REGISTRY-AND-ENCODING is a string giving the registry and encoding of
+ the font.
+
+The resulting list is sorted according to the current setting of
+the face font sort order, see `face-font-selection-order'. */)
(Lisp_Object family, Lisp_Object frame)
{
Lisp_Object font_spec, list, *drivers, vec;