diff options
| author | Eli Zaretskii | 2024-05-17 10:18:35 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2024-05-17 10:18:35 +0300 |
| commit | 3dd09516c9a87f663fefde77befb7d569cbed9f0 (patch) | |
| tree | eb1641039e249ea5b7ddc1306353f5ff957bc622 /src | |
| parent | 042b58b5ff4ac4c17e03b25fd2c367c1cf869a99 (diff) | |
| download | emacs-3dd09516c9a87f663fefde77befb7d569cbed9f0.tar.gz emacs-3dd09516c9a87f663fefde77befb7d569cbed9f0.zip | |
; Improve documentation of 'set-fontset-font'
* doc/lispref/display.texi (Fontsets):
* src/fontset.c (Fset_fontset_font): Doc fix (bug#70993).
Diffstat (limited to 'src')
| -rw-r--r-- | src/fontset.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/fontset.c b/src/fontset.c index 7af6782a37c..4aa2fb7b2c7 100644 --- a/src/fontset.c +++ b/src/fontset.c | |||
| @@ -1499,7 +1499,16 @@ Optional 5th argument ADD, if non-nil, specifies how to add FONT-SPEC | |||
| 1499 | to the previously set font specifications for CHARACTERS. If it is | 1499 | to the previously set font specifications for CHARACTERS. If it is |
| 1500 | `prepend', FONT-SPEC is prepended to the existing font specifications. | 1500 | `prepend', FONT-SPEC is prepended to the existing font specifications. |
| 1501 | If it is `append', FONT-SPEC is appended. By default, FONT-SPEC | 1501 | If it is `append', FONT-SPEC is appended. By default, FONT-SPEC |
| 1502 | overwrites the previous settings. */) | 1502 | overwrites the previous settings. |
| 1503 | |||
| 1504 | For reliable results, this function should be called before any | ||
| 1505 | of CHARACTERS were displayed in the current Emacs session. In | ||
| 1506 | particular, if some of CHARACTERS are displayed using character | ||
| 1507 | compositions, those compositions will be cached after they are first | ||
| 1508 | produced, and the cached values include the font used for displaying | ||
| 1509 | the composed characters -- calling this function will not affect the | ||
| 1510 | font recorded in the cache of compositions, thus they will continue | ||
| 1511 | to be shown using the fonts from before the call. */) | ||
| 1503 | (Lisp_Object fontset, Lisp_Object characters, Lisp_Object font_spec, | 1512 | (Lisp_Object fontset, Lisp_Object characters, Lisp_Object font_spec, |
| 1504 | Lisp_Object frame, Lisp_Object add) | 1513 | Lisp_Object frame, Lisp_Object add) |
| 1505 | { | 1514 | { |