summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChong Yidong <cyd@stupidchicken.com>2009-07-28 15:00:51 +0000
committerChong Yidong <cyd@stupidchicken.com>2009-07-28 15:00:51 +0000
commit0a0dd4284eeb8025713134c65a948b7acfc48e68 (patch)
tree57f2d93b4452d5f4e231fcc5871dad122d364e7f
parent10025e2076cb2e71a77a9f9b92a0d4fb4f7ee5da (diff)
downloademacs-0a0dd4284eeb8025713134c65a948b7acfc48e68.tar.gz
* xfaces.c (face_with_height): Call font_clear_prop.
-rw-r--r--src/ChangeLog4
-rw-r--r--src/xfaces.c1
2 files changed, 5 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index bbbfcf5d214..7554ce4583d 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,9 @@
2009-07-28 Kenichi Handa <handa@m17n.org>
+ * xfaces.c (face_with_height): Call font_clear_prop.
+
+2009-07-28 Kenichi Handa <handa@m17n.org>
+
* font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
rigidly.
diff --git a/src/xfaces.c b/src/xfaces.c
index 704d7a92049..9eb3d36211b 100644
--- a/src/xfaces.c
+++ b/src/xfaces.c
@@ -4959,6 +4959,7 @@ face_with_height (f, face_id, height)
face = FACE_FROM_ID (f, face_id);
bcopy (face->lface, attrs, sizeof attrs);
attrs[LFACE_HEIGHT_INDEX] = make_number (height);
+ font_clear_prop (attrs, FONT_SIZE_INDEX);
face_id = lookup_face (f, attrs);
#endif /* HAVE_WINDOW_SYSTEM */