2459 |
Chinese GB2312 characters has a wild card @samp{*} in the @var{family} |
Chinese GB2312 characters has a wild card @samp{*} in the @var{family} |
2460 |
field. |
field. |
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 |
|
|
2493 |
@defun char-displayable-p char |
@defun char-displayable-p char |
2494 |
This function returns @code{t} if Emacs ought to be able to display |
This function returns @code{t} if Emacs ought to be able to display |
2495 |
@var{char}. More precisely, if the selected frame's fontset has a |
@var{char}. More precisely, if the selected frame's fontset has a |