diff options
| author | Kenichi Handa | 2003-10-25 02:42:26 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2003-10-25 02:42:26 +0000 |
| commit | 885fef7c13e415dd8a9fb5c77add007c414bacff (patch) | |
| tree | 3e59d6e44beaac790a77fb7b99068282299c5cdf | |
| parent | 8cc313a338820edc56cecbde6e26dad17c8bc41b (diff) | |
| download | emacs-885fef7c13e415dd8a9fb5c77add007c414bacff.tar.gz emacs-885fef7c13e415dd8a9fb5c77add007c414bacff.zip | |
(Fontsets): Add description of the function set-fontset-font.
| -rw-r--r-- | lispref/ChangeLog | 5 | ||||
| -rw-r--r-- | lispref/display.texi | 31 |
2 files changed, 36 insertions, 0 deletions
diff --git a/lispref/ChangeLog b/lispref/ChangeLog index fa271dcf506..7818775f669 100644 --- a/lispref/ChangeLog +++ b/lispref/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2003-10-25 Kenichi Handa <handa@m17n.org> | ||
| 2 | |||
| 3 | * display.texi (Fontsets): Add description of the function | ||
| 4 | set-fontset-font. | ||
| 5 | |||
| 1 | 2003-10-23 Luc Teirlinck <teirllm@auburn.edu> | 6 | 2003-10-23 Luc Teirlinck <teirllm@auburn.edu> |
| 2 | 7 | ||
| 3 | * display.texi (Temporary Displays): Add xref to `Documentation | 8 | * display.texi (Temporary Displays): Add xref to `Documentation |
diff --git a/lispref/display.texi b/lispref/display.texi index 105d7e6d3e6..48628f6b5b7 100644 --- a/lispref/display.texi +++ b/lispref/display.texi | |||
| @@ -2459,6 +2459,37 @@ Then, the font specifications for all but Chinese GB2312 characters have | |||
| 2459 | Chinese GB2312 characters has a wild card @samp{*} in the @var{family} | 2459 | Chinese GB2312 characters has a wild card @samp{*} in the @var{family} |
| 2460 | field. | 2460 | field. |
| 2461 | 2461 | ||
| 2462 | @defun set-fontset-font name character fontname &optional frame | ||
| 2463 | This function modifies the existing fontset @var{name} to | ||
| 2464 | use the font name @var{fontname} for the character @var{character}. | ||
| 2465 | |||
| 2466 | If @var{name} is nil, this function modifies the default | ||
| 2467 | fontset of which short name is "fontset-default". | ||
| 2468 | |||
| 2469 | @var{character} may be a cons; @samp{(@var{from} | ||
| 2470 | . @var{to})}, where @var{from} and @var{to} are non-generic | ||
| 2471 | characters. In that case, use @var{fontname} for all | ||
| 2472 | characters in the range @var{from} and @var{to} (inclusive). | ||
| 2473 | |||
| 2474 | @var{character} may be a charset. In that case, use | ||
| 2475 | @var{fontname} for all character in the charsets. | ||
| 2476 | |||
| 2477 | @var{fontname} may be a cons; @samp{(@var{family} | ||
| 2478 | . @var{registry})}, where @var{family} is a family name of a | ||
| 2479 | font (possibly including a foundry name at the head), | ||
| 2480 | @var{registry} is a registry name of a font (possibly | ||
| 2481 | including an encoding name at the tail). | ||
| 2482 | |||
| 2483 | For instance, this changes the default fontset to use a font | ||
| 2484 | of which registry name is "JISX0208.1983" for all characters | ||
| 2485 | belonging to the charset `japanese-jisx0208'. | ||
| 2486 | |||
| 2487 | @example | ||
| 2488 | (set-fontset-font nil 'japanese-jisx0208 '(nil . "JISX0208.1983")) | ||
| 2489 | @end example | ||
| 2490 | |||
| 2491 | @end defun | ||
| 2492 | |||
| 2462 | @defun char-displayable-p char | 2493 | @defun char-displayable-p char |
| 2463 | This function returns @code{t} if Emacs ought to be able to display | 2494 | This function returns @code{t} if Emacs ought to be able to display |
| 2464 | @var{char}. More precisely, if the selected frame's fontset has a | 2495 | @var{char}. More precisely, if the selected frame's fontset has a |