diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/macterm.c | 8 |
2 files changed, 13 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 8d1bb3cf193..147d3533886 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2006-09-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | ||
| 2 | |||
| 3 | * macterm.c (mac_compute_glyph_string_overhangs, XLoadQueryFont) | ||
| 4 | [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw before QDTextBounds. | ||
| 5 | |||
| 1 | 2006-09-26 Kenichi Handa <handa@m17n.org> | 6 | 2006-09-26 Kenichi Handa <handa@m17n.org> |
| 2 | 7 | ||
| 3 | * keymap.c (Fsingle_key_description): For an invalid char, return | 8 | * keymap.c (Fsingle_key_description): For an invalid char, return |
diff --git a/src/macterm.c b/src/macterm.c index 6f9e6273cb7..72812d38304 100644 --- a/src/macterm.c +++ b/src/macterm.c | |||
| @@ -2634,6 +2634,11 @@ mac_compute_glyph_string_overhangs (s) | |||
| 2634 | Rect r; | 2634 | Rect r; |
| 2635 | MacFontStruct *font = s->font; | 2635 | MacFontStruct *font = s->font; |
| 2636 | 2636 | ||
| 2637 | #if USE_CG_DRAWING | ||
| 2638 | mac_prepare_for_quickdraw (s->f); | ||
| 2639 | #endif | ||
| 2640 | SetPortWindowPort (FRAME_MAC_WINDOW (s->f)); | ||
| 2641 | |||
| 2637 | TextFont (font->mac_fontnum); | 2642 | TextFont (font->mac_fontnum); |
| 2638 | TextSize (font->mac_fontsize); | 2643 | TextSize (font->mac_fontsize); |
| 2639 | TextFace (font->mac_fontface); | 2644 | TextFace (font->mac_fontface); |
| @@ -8001,6 +8006,9 @@ XLoadQueryFont (Display *dpy, char *fontname) | |||
| 8001 | FontInfo the_fontinfo; | 8006 | FontInfo the_fontinfo; |
| 8002 | int is_two_byte_font; | 8007 | int is_two_byte_font; |
| 8003 | 8008 | ||
| 8009 | #if USE_CG_DRAWING | ||
| 8010 | mac_prepare_for_quickdraw (NULL); | ||
| 8011 | #endif | ||
| 8004 | /* Save the current font number used. */ | 8012 | /* Save the current font number used. */ |
| 8005 | GetPort (&port); | 8013 | GetPort (&port); |
| 8006 | #if TARGET_API_MAC_CARBON | 8014 | #if TARGET_API_MAC_CARBON |