diff options
| author | Glenn Morris | 2011-02-22 20:19:28 -0800 |
|---|---|---|
| committer | Glenn Morris | 2011-02-22 20:19:28 -0800 |
| commit | cce7d53002e8abc346b67ea4100507b0e7c4d68e (patch) | |
| tree | faed484c15cde23eec2ec2463a1f30b9a8f4e43b /src | |
| parent | 4902e827bc04d0e1cb17820fe522992995166fc7 (diff) | |
| parent | 51a13bdd9324860db6381e6da121411467087bec (diff) | |
| download | emacs-cce7d53002e8abc346b67ea4100507b0e7c4d68e.tar.gz emacs-cce7d53002e8abc346b67ea4100507b0e7c4d68e.zip | |
Merge from emacs-23; up to 2010-06-02T00:10:42Z!yamaoka@jpl.org.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/font.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 8befb78f91f..194f1c44f84 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2011-02-23 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 integer. | ||
| 5 | |||
| 1 | 2011-02-22 Paul Eggert <eggert@cs.ucla.edu> | 6 | 2011-02-22 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 7 | ||
| 3 | * dired.c (Ffile_attributes): Simplify and avoid #ifdef. | 8 | * dired.c (Ffile_attributes): Simplify and avoid #ifdef. |
diff --git a/src/font.c b/src/font.c index d77eafb6ad2..35821ae34f9 100644 --- a/src/font.c +++ b/src/font.c | |||
| @@ -2806,7 +2806,7 @@ font_open_entity (FRAME_PTR f, Lisp_Object entity, int pixel_size) | |||
| 2806 | Lisp_Object objlist, size, val, font_object; | 2806 | Lisp_Object objlist, size, val, font_object; |
| 2807 | struct font *font; | 2807 | struct font *font; |
| 2808 | int min_width, height; | 2808 | int min_width, height; |
| 2809 | int scaled_pixel_size; | 2809 | int scaled_pixel_size = pixel_size; |
| 2810 | 2810 | ||
| 2811 | font_assert (FONT_ENTITY_P (entity)); | 2811 | font_assert (FONT_ENTITY_P (entity)); |
| 2812 | size = AREF (entity, FONT_SIZE_INDEX); | 2812 | size = AREF (entity, FONT_SIZE_INDEX); |
| @@ -3121,7 +3121,7 @@ font_find_for_lface (FRAME_PTR f, Lisp_Object *attrs, Lisp_Object spec, int c) | |||
| 3121 | XSETFRAME (frame, f); | 3121 | XSETFRAME (frame, f); |
| 3122 | size = AREF (spec, FONT_SIZE_INDEX); | 3122 | size = AREF (spec, FONT_SIZE_INDEX); |
| 3123 | pixel_size = font_pixel_size (f, spec); | 3123 | pixel_size = font_pixel_size (f, spec); |
| 3124 | if (pixel_size == 0) | 3124 | if (pixel_size == 0 && INTEGERP (attrs[LFACE_HEIGHT_INDEX])) |
| 3125 | { | 3125 | { |
| 3126 | double pt = XINT (attrs[LFACE_HEIGHT_INDEX]); | 3126 | double pt = XINT (attrs[LFACE_HEIGHT_INDEX]); |
| 3127 | 3127 | ||