Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
d6eb4e25
Commit
d6eb4e25
authored
Mar 13, 2009
by
Kenichi Handa
Browse files
(Fontsets): Update the description.
parent
413657ff
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
9 deletions
+29
-9
doc/lispref/ChangeLog
doc/lispref/ChangeLog
+4
-0
doc/lispref/display.texi
doc/lispref/display.texi
+25
-9
No files found.
doc/lispref/ChangeLog
View file @
d6eb4e25
2009-03-13 Kenichi Handa <handa@m17n.org>
* display.texi (Fontsets): Update the description.
2009-03-13 Chong Yidong <cyd@stupidchicken.com>
* advice.texi (Advising Primitives): Link to What Is a Function.
...
...
doc/lispref/display.texi
View file @
d6eb4e25
...
...
@@ -2883,32 +2883,48 @@ Then, the font specifications for all but Chinese GB2312 characters have
Chinese GB2312 characters has a wild card @samp{*} in the @var{family}
field.
@defun set-fontset-font name character font
name
&optional frame
This function modifies the existing fontset @var{name} to
use the font name
@var{font
name
} for the character @var{character}.
@defun set-fontset-font name character font
-spec
&optional frame
add
This function modifies the existing fontset @var{name} to
use the font
matching with
@var{font
-spec
} for the character @var{character}.
If @var{name} is @code{nil}, this function modifies the default
If @var{name} is @code{nil}, this function modifies the fontset of the
selected frame or that of @var{frame} if @var{frame} is not
@code{nil}.
If @var{name} is @code{t}, this function modifies the default
fontset, whose short name is @samp{fontset-default}.
@var{character} may be a cons; @code{(@var{from} . @var{to})}, where
@var{from} and @var{to} are character codepoints. In that case, use
@var{font
name
} for all characters in the range @var{from} and @var{to}
@var{font
-spec
} for all characters in the range @var{from} and @var{to}
(inclusive).
@var{character} may be a charset. In that case, use
@var{fontname} for all character in the charsets.
@var{font-spec} for all character in the charsets.
@var{character} may be a script anme. In that case, use
@var{font-spec} for all character in the charsets.
@var{font
name
} may be a cons; @code{(@var{family} . @var{registry})},
@var{font
-spec
} may be a cons; @code{(@var{family} . @var{registry})},
where @var{family} is a family name of a font (possibly including a
foundry name at the head), @var{registry} is a registry name of a font
(possibly including an encoding name at the tail).
@var{font-spec} may be a font name string.
The optional argument @var{add}, if non-@code{nil}, specifies how to
add @var{font-spec} to the font specifications previously set. If it
is @code{prepend}, @var{font-spec} is prepended. If it is
@code{append}, @var{font-spec} is appended. By default,
@var{font-spec} overrides the previous settings.
For instance, this changes the default fontset to use a font of which
registr
y name is @samp{
JISX0208.1983
} for all characters belonging to
famil
y name is @samp{
Kochi Gothic
} for all characters belonging to
the charset @code{japanese-jisx0208}.
@smallexample
(set-fontset-font nil '
japanese
-
jisx0208
'(nil . "JISX0208.1983"))
(set-fontset-font t 'japanese-jisx0208
(font-spec :family "Kochi Gothic"))
@end smallexample
@end defun
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment