diff options
author | Eli Zaretskii <eliz@gnu.org> | 2020-11-19 22:06:23 +0200 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2020-11-19 22:06:23 +0200 |
commit | f641ef1a0712d5ca1a9a6dc39d4f0846b11bc26b (patch) | |
tree | 6911e71f8747babe00a15d0643ad5c53f244b49e /src/font.c | |
parent | 9d02e6c5ff2a8af78ca8a2c934970f8a46dcef55 (diff) | |
download | emacs-f641ef1a0712d5ca1a9a6dc39d4f0846b11bc26b.tar.gz emacs-f641ef1a0712d5ca1a9a6dc39d4f0846b11bc26b.tar.bz2 emacs-f641ef1a0712d5ca1a9a6dc39d4f0846b11bc26b.zip |
Improve documentation of 'font-spec'
* doc/lispref/display.texi (Low-Level Font):
* src/font.c (Ffont_spec): Document 'font-spec' keys that are
supported, but were undocumented.
Diffstat (limited to 'src/font.c')
-rw-r--r-- | src/font.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/font.c b/src/font.c index 39ec1b3562a..b71eae6c319 100644 --- a/src/font.c +++ b/src/font.c @@ -3934,6 +3934,23 @@ VALUE must be a non-negative integer or a floating point number specifying the font size. It specifies the font size in pixels (if VALUE is an integer), or in points (if VALUE is a float). +`:dpi' + +VALUE must be a non-negative number that specifies the resolution +(dot per inch) for which the font is designed. + +`:spacing' + +VALUE specifies the spacing of the font: mono, proportional, charcell, +or dual. It can be either a number (0 for proportional, 90 for dual, +100 for mono, 110 for charcell) or a 1-letter symbol: `P', `D', `M', +or `C' (lower-case variants are also accepted). + +`:avgwidth' + +VALUE must be a non-negative integer specifying the average width of +the font in 1/10 pixel units. + `:name' VALUE must be a string of XLFD-style or fontconfig-style font name. |