aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenichi Handa2003-10-25 02:42:26 +0000
committerKenichi Handa2003-10-25 02:42:26 +0000
commit885fef7c13e415dd8a9fb5c77add007c414bacff (patch)
tree3e59d6e44beaac790a77fb7b99068282299c5cdf
parent8cc313a338820edc56cecbde6e26dad17c8bc41b (diff)
downloademacs-885fef7c13e415dd8a9fb5c77add007c414bacff.tar.gz
emacs-885fef7c13e415dd8a9fb5c77add007c414bacff.zip
(Fontsets): Add description of the function set-fontset-font.
-rw-r--r--lispref/ChangeLog5
-rw-r--r--lispref/display.texi31
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 @@
12003-10-25 Kenichi Handa <handa@m17n.org>
2
3 * display.texi (Fontsets): Add description of the function
4 set-fontset-font.
5
12003-10-23 Luc Teirlinck <teirllm@auburn.edu> 62003-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
2459Chinese GB2312 characters has a wild card @samp{*} in the @var{family} 2459Chinese GB2312 characters has a wild card @samp{*} in the @var{family}
2460field. 2460field.
2461 2461
2462@defun set-fontset-font name character fontname &optional frame
2463This function modifies the existing fontset @var{name} to
2464use the font name @var{fontname} for the character @var{character}.
2465
2466If @var{name} is nil, this function modifies the default
2467fontset 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
2471characters. In that case, use @var{fontname} for all
2472characters 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
2479font (possibly including a foundry name at the head),
2480@var{registry} is a registry name of a font (possibly
2481including an encoding name at the tail).
2482
2483For instance, this changes the default fontset to use a font
2484of which registry name is "JISX0208.1983" for all characters
2485belonging 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
2463This function returns @code{t} if Emacs ought to be able to display 2494This 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