Mercurial > emacs
comparison lispref/display.texi @ 52932:eb3f1895daff
(Fontsets): Add description of the function set-fontset-font.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Sat, 25 Oct 2003 02:41:40 +0000 |
parents | 41c0ac1a4ed4 |
children | cac3cb68235c |
comparison
equal
deleted
inserted
replaced
52931:3f44b2120fba | 52932:eb3f1895daff |
---|---|
2457 Then, the font specifications for all but Chinese GB2312 characters have | 2457 Then, the font specifications for all but Chinese GB2312 characters have |
2458 @samp{fixed} in the @var{family} field, and the font specification for | 2458 @samp{fixed} in the @var{family} field, and the font specification for |
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 |
2465 font to display the character set that @var{char} belongs to. | 2496 font to display the character set that @var{char} belongs to. |
2466 | 2497 |