Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
d507f8d7
Commit
d507f8d7
authored
Mar 19, 2009
by
Kenichi Handa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(x_set_font): Handle the case that ARG is a cons.
parent
0875632e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
2 deletions
+22
-2
src/ChangeLog
src/ChangeLog
+8
-0
src/frame.c
src/frame.c
+14
-2
No files found.
src/ChangeLog
View file @
d507f8d7
2009-03-19 Kenichi Handa <handa@m17n.org>
* fontset.c (Fset_fontset_font): When a spec of ASCII font is
changed, use font_load_for_lface to get a new font object. Call
free_realized_fontset after handling ASCII font change.
* frame.c (x_set_font): Handle the case that ARG is a cons.
2009-03-19 Glenn Morris <rgm@gnu.org>
* fileio.c (Fsubstitute_in_file_name): Doc fix.
...
...
src/frame.c
View file @
d507f8d7
...
...
@@ -3372,8 +3372,9 @@ x_set_font (f, arg, oldval)
fail to use ARG as the new parameter value. */
store_frame_param (f, Qfont, oldval);
/* ARG is a fontset name, a font name, or a font object.
In the last case, this function never fail. */
/* ARG is a fontset name, a font name, a cons of fontset name and a
font object, or a font object. In the last case, this function
never fail. */
if (STRINGP (arg))
{
fontset = fs_query_fontset (arg, 0);
...
...
@@ -3396,6 +3397,17 @@ x_set_font (f, arg, oldval)
else
error ("The default fontset can't be used for a frame font");
}
else if (CONSP (arg) && STRINGP (XCAR (arg)) && FONT_OBJECT_P (XCDR (arg)))
{
/* This is the case that the ASCII font of F's fontset XCAR
(arg) is changed to the font XCDR (arg) by
`set-fontset-font'. */
fontset = fs_query_fontset (XCAR (arg), 0);
if (fontset < 0)
error ("Unknown fontset: %s", SDATA (XCAR (arg)));
font_object = XCDR (arg);
arg = AREF (font_object, FONT_NAME_INDEX);
}
else if (FONT_OBJECT_P (arg))
{
font_object = arg;
...
...
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