HCoop
/
bpt
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af7e13b
)
(font_unparse_fcname): Pay attention to the case that
author
Kenichi Handa
<handa@m17n.org>
Fri, 27 Oct 2006 07:37:13 +0000
(07:37 +0000)
committer
Kenichi Handa
<handa@m17n.org>
Fri, 27 Oct 2006 07:37:13 +0000
(07:37 +0000)
some of font property is a null string.
src/font.c
patch
|
blob
|
blame
|
history
diff --git
a/src/font.c
b/src/font.c
index
505a91d
..
b1bdd10
100644
(file)
--- a/
src/font.c
+++ b/
src/font.c
@@
-1324,7
+1324,7
@@
font_unparse_fcname (font, pixel_size, name, nbytes)
p += sprintf (p, ":foundry=%s",
SDATA (SYMBOL_NAME (AREF (font, FONT_FOUNDRY_INDEX))));
for (i = 0; i < 3; i++)
- if (! NILP (styles [i]))
+ if (
SYMBOLP (styles[i]) &&
! NILP (styles [i]))
p += sprintf (p, ":%s=%s", style_names[i],
SDATA (SYMBOL_NAME (styles [i])));
if (dpi >= 0)