diff options
| author | Kenichi Handa | 2009-03-13 05:07:14 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2009-03-13 05:07:14 +0000 |
| commit | d6eb4e250a6a5918f093b5e8dc5906a5cf598b6f (patch) | |
| tree | 456c519ea98cb07a17106c25de86e1996fd5ced9 | |
| parent | 413657ff0499aea4e565da344a2705445bc20a81 (diff) | |
| download | emacs-d6eb4e250a6a5918f093b5e8dc5906a5cf598b6f.tar.gz emacs-d6eb4e250a6a5918f093b5e8dc5906a5cf598b6f.zip | |
(Fontsets): Update the description.
| -rw-r--r-- | doc/lispref/ChangeLog | 4 | ||||
| -rw-r--r-- | doc/lispref/display.texi | 34 |
2 files changed, 29 insertions, 9 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog index 5aae4f93136..726e43ea4b0 100644 --- a/doc/lispref/ChangeLog +++ b/doc/lispref/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2009-03-13 Kenichi Handa <handa@m17n.org> | ||
| 2 | |||
| 3 | * display.texi (Fontsets): Update the description. | ||
| 4 | |||
| 1 | 2009-03-13 Chong Yidong <cyd@stupidchicken.com> | 5 | 2009-03-13 Chong Yidong <cyd@stupidchicken.com> |
| 2 | 6 | ||
| 3 | * advice.texi (Advising Primitives): Link to What Is a Function. | 7 | * advice.texi (Advising Primitives): Link to What Is a Function. |
diff --git a/doc/lispref/display.texi b/doc/lispref/display.texi index 5cc28d3a1dc..e5c257f0b23 100644 --- a/doc/lispref/display.texi +++ b/doc/lispref/display.texi | |||
| @@ -2883,32 +2883,48 @@ Then, the font specifications for all but Chinese GB2312 characters have | |||
| 2883 | Chinese GB2312 characters has a wild card @samp{*} in the @var{family} | 2883 | Chinese GB2312 characters has a wild card @samp{*} in the @var{family} |
| 2884 | field. | 2884 | field. |
| 2885 | 2885 | ||
| 2886 | @defun set-fontset-font name character fontname &optional frame | 2886 | @defun set-fontset-font name character font-spec &optional frame add |
| 2887 | This function modifies the existing fontset @var{name} to | 2887 | This function modifies the existing fontset @var{name} to use the font |
| 2888 | use the font name @var{fontname} for the character @var{character}. | 2888 | matching with @var{font-spec} for the character @var{character}. |
| 2889 | 2889 | ||
| 2890 | If @var{name} is @code{nil}, this function modifies the default | 2890 | If @var{name} is @code{nil}, this function modifies the fontset of the |
| 2891 | selected frame or that of @var{frame} if @var{frame} is not | ||
| 2892 | @code{nil}. | ||
| 2893 | |||
| 2894 | If @var{name} is @code{t}, this function modifies the default | ||
| 2891 | fontset, whose short name is @samp{fontset-default}. | 2895 | fontset, whose short name is @samp{fontset-default}. |
| 2892 | 2896 | ||
| 2893 | @var{character} may be a cons; @code{(@var{from} . @var{to})}, where | 2897 | @var{character} may be a cons; @code{(@var{from} . @var{to})}, where |
| 2894 | @var{from} and @var{to} are character codepoints. In that case, use | 2898 | @var{from} and @var{to} are character codepoints. In that case, use |
| 2895 | @var{fontname} for all characters in the range @var{from} and @var{to} | 2899 | @var{font-spec} for all characters in the range @var{from} and @var{to} |
| 2896 | (inclusive). | 2900 | (inclusive). |
| 2897 | 2901 | ||
| 2898 | @var{character} may be a charset. In that case, use | 2902 | @var{character} may be a charset. In that case, use |
| 2899 | @var{fontname} for all character in the charsets. | 2903 | @var{font-spec} for all character in the charsets. |
| 2904 | |||
| 2905 | @var{character} may be a script anme. In that case, use | ||
| 2906 | @var{font-spec} for all character in the charsets. | ||
| 2900 | 2907 | ||
| 2901 | @var{fontname} may be a cons; @code{(@var{family} . @var{registry})}, | 2908 | @var{font-spec} may be a cons; @code{(@var{family} . @var{registry})}, |
| 2902 | where @var{family} is a family name of a font (possibly including a | 2909 | where @var{family} is a family name of a font (possibly including a |
| 2903 | foundry name at the head), @var{registry} is a registry name of a font | 2910 | foundry name at the head), @var{registry} is a registry name of a font |
| 2904 | (possibly including an encoding name at the tail). | 2911 | (possibly including an encoding name at the tail). |
| 2905 | 2912 | ||
| 2913 | @var{font-spec} may be a font name string. | ||
| 2914 | |||
| 2915 | The optional argument @var{add}, if non-@code{nil}, specifies how to | ||
| 2916 | add @var{font-spec} to the font specifications previously set. If it | ||
| 2917 | is @code{prepend}, @var{font-spec} is prepended. If it is | ||
| 2918 | @code{append}, @var{font-spec} is appended. By default, | ||
| 2919 | @var{font-spec} overrides the previous settings. | ||
| 2920 | |||
| 2906 | For instance, this changes the default fontset to use a font of which | 2921 | For instance, this changes the default fontset to use a font of which |
| 2907 | registry name is @samp{JISX0208.1983} for all characters belonging to | 2922 | family name is @samp{Kochi Gothic} for all characters belonging to |
| 2908 | the charset @code{japanese-jisx0208}. | 2923 | the charset @code{japanese-jisx0208}. |
| 2909 | 2924 | ||
| 2910 | @smallexample | 2925 | @smallexample |
| 2911 | (set-fontset-font nil 'japanese-jisx0208 '(nil . "JISX0208.1983")) | 2926 | (set-fontset-font t 'japanese-jisx0208 |
| 2927 | (font-spec :family "Kochi Gothic")) | ||
| 2912 | @end smallexample | 2928 | @end smallexample |
| 2913 | @end defun | 2929 | @end defun |
| 2914 | 2930 | ||