aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenichi Handa2010-01-31 15:46:53 +0900
committerKenichi Handa2010-01-31 15:46:53 +0900
commitb57d9029b1e2cb5e74542046c79a6dde5c0620ad (patch)
tree28380ae3cb26236b42dde8be76ea3e20738ba9f4 /src
parent8fab23622f08c0ecc404b1c12ef9834eda4a7bb3 (diff)
downloademacs-b57d9029b1e2cb5e74542046c79a6dde5c0620ad.tar.gz
emacs-b57d9029b1e2cb5e74542046c79a6dde5c0620ad.zip
font.c (font_parse_xlfd): If FONT is a font-entity and pixel size in NAME is invalid, return -1.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/font.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index f27aed26bef..a614d670fba 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12010-01-31 Kenichi Handa <handa@m17n.org>
2
3 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
4 size in NAME is invalid, return -1.
5
12010-01-31 David De La Harpe Golden <david@harpegolden.net> 62010-01-31 David De La Harpe Golden <david@harpegolden.net>
2 7
3 * fileio.c (Frename_file): Correctly rename symlinks to 8 * fileio.c (Frename_file): Correctly rename symlinks to
diff --git a/src/font.c b/src/font.c
index 557f1fbcddc..5f1d59afe22 100644
--- a/src/font.c
+++ b/src/font.c
@@ -1122,6 +1122,8 @@ font_parse_xlfd (name, font)
1122 val = INTERN_FIELD (XLFD_PIXEL_INDEX); 1122 val = INTERN_FIELD (XLFD_PIXEL_INDEX);
1123 if (INTEGERP (val)) 1123 if (INTEGERP (val))
1124 ASET (font, FONT_SIZE_INDEX, val); 1124 ASET (font, FONT_SIZE_INDEX, val);
1125 else if (FONT_ENTITY_P (font))
1126 return -1;
1125 else 1127 else
1126 { 1128 {
1127 double point_size = -1; 1129 double point_size = -1;