changeset 107061:fa65fbe23fdb

font.c (font_parse_xlfd): If FONT is a font-entity and pixel size in NAME is invalid, return -1.
author Kenichi Handa <handa@m17n.org>
date Sun, 31 Jan 2010 15:46:53 +0900
parents 56607edb3cea
children 8bd26043ea93
files src/ChangeLog src/font.c
diffstat 2 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Sat Jan 30 23:49:28 2010 -0500
+++ b/src/ChangeLog	Sun Jan 31 15:46:53 2010 +0900
@@ -1,3 +1,8 @@
+2010-01-31  Kenichi Handa  <handa@m17n.org>
+
+	* font.c (font_parse_xlfd): If FONT is a font-entity and pixel
+	size in NAME is invalid, return -1.
+
 2010-01-31  David De La Harpe Golden  <david@harpegolden.net>
 
 	* fileio.c (Frename_file): Correctly rename symlinks to
--- a/src/font.c	Sat Jan 30 23:49:28 2010 -0500
+++ b/src/font.c	Sun Jan 31 15:46:53 2010 +0900
@@ -1122,6 +1122,8 @@
 	  val = INTERN_FIELD (XLFD_PIXEL_INDEX);
 	  if (INTEGERP (val))
 	    ASET (font, FONT_SIZE_INDEX, val);
+	  else if (FONT_ENTITY_P (font))
+	    return -1;
 	  else
 	    {
 	      double point_size = -1;