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
5f2d79e0
Commit
5f2d79e0
authored
May 15, 2008
by
Kenichi Handa
Browse files
(Fnew_fontset): Call font_unparse_xlfd with 256-byte
buffer. Check the return value of it.
parent
4079589f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
src/ChangeLog
src/ChangeLog
+5
-0
src/fontset.c
src/fontset.c
+4
-3
No files found.
src/ChangeLog
View file @
5f2d79e0
2008-05-15 Kenichi Handa <handa@m17n.org>
* fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
buffer. Check the return value of it.
2008-05-14 Jason Rumney <jasonr@gnu.org>
* w32term.c (w32_get_glyph_overhangs): Remove.
...
...
src/fontset.c
View file @
5f2d79e0
...
...
@@ -1557,7 +1557,7 @@ FONT-SPEC is a vector, a cons, or a string. See the documentation of
{
Lisp_Object
font_spec
=
Ffont_spec
(
0
,
NULL
);
Lisp_Object
short_name
;
char
*
xlfd
;
char
xlfd
[
256
]
;
int
len
;
if
(
font_parse_xlfd
(
SDATA
(
name
),
font_spec
)
<
0
)
...
...
@@ -1570,8 +1570,9 @@ FONT-SPEC is a vector, a cons, or a string. See the documentation of
Vfontset_alias_alist
);
ASET
(
font_spec
,
FONT_REGISTRY_INDEX
,
Qiso8859_1
);
fontset
=
make_fontset
(
Qnil
,
name
,
Qnil
);
xlfd
=
alloca
(
SBYTES
(
name
)
+
1
);
len
=
font_unparse_xlfd
(
font_spec
,
0
,
xlfd
,
SBYTES
(
name
)
+
1
);
len
=
font_unparse_xlfd
(
font_spec
,
0
,
xlfd
,
256
);
if
(
len
<
0
)
error
(
"Invalid fontset name (perhaps too long): %s"
,
SDATA
(
name
));
FONTSET_ASCII
(
fontset
)
=
make_unibyte_string
(
xlfd
,
len
);
}
else
...
...
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