aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenichi Handa2011-02-17 16:47:29 +0900
committerKenichi Handa2011-02-17 16:47:29 +0900
commitdbc0543206eafc2e3bcad46e19629d817f496cf5 (patch)
tree241659354e8239452b6a9ee7c3c67be57bd1d900 /src
parent4648b91b097ad9f3dfbd8a988846293ea5a5c78c (diff)
downloademacs-dbc0543206eafc2e3bcad46e19629d817f496cf5.tar.gz
emacs-dbc0543206eafc2e3bcad46e19629d817f496cf5.zip
Fix font-size handling bug.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog6
-rw-r--r--src/font.c4
2 files changed, 8 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 68e9c76a437..6b3c5bc3ab4 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,9 @@
12011-02-17 Kenichi Handa <handa@m17n.org>
2
3 * font.c (font_open_entity): Be sure to set scaled_pixel_size.
4 (font_find_for_lface): Check if attrs[LFACE_HEIGHT_INDEX] is
5 integer.
6
12011-02-13 Eli Zaretskii <eliz@gnu.org> 72011-02-13 Eli Zaretskii <eliz@gnu.org>
2 8
3 * xdisp.c (redisplay_internal): Resynchronize `w' if the selected 9 * xdisp.c (redisplay_internal): Resynchronize `w' if the selected
diff --git a/src/font.c b/src/font.c
index ebf0b547b9f..08309d3697b 100644
--- a/src/font.c
+++ b/src/font.c
@@ -3042,7 +3042,7 @@ font_open_entity (f, entity, pixel_size)
3042 Lisp_Object objlist, size, val, font_object; 3042 Lisp_Object objlist, size, val, font_object;
3043 struct font *font; 3043 struct font *font;
3044 int min_width, height; 3044 int min_width, height;
3045 int scaled_pixel_size; 3045 int scaled_pixel_size = pixel_size;
3046 3046
3047 font_assert (FONT_ENTITY_P (entity)); 3047 font_assert (FONT_ENTITY_P (entity));
3048 size = AREF (entity, FONT_SIZE_INDEX); 3048 size = AREF (entity, FONT_SIZE_INDEX);
@@ -3422,7 +3422,7 @@ font_find_for_lface (f, attrs, spec, c)
3422 XSETFRAME (frame, f); 3422 XSETFRAME (frame, f);
3423 size = AREF (spec, FONT_SIZE_INDEX); 3423 size = AREF (spec, FONT_SIZE_INDEX);
3424 pixel_size = font_pixel_size (f, spec); 3424 pixel_size = font_pixel_size (f, spec);
3425 if (pixel_size == 0) 3425 if (pixel_size == 0 && INTEGERP (attrs[LFACE_HEIGHT_INDEX]))
3426 { 3426 {
3427 double pt = XINT (attrs[LFACE_HEIGHT_INDEX]); 3427 double pt = XINT (attrs[LFACE_HEIGHT_INDEX]);
3428 3428