]> git.eshelyaron.com Git - emacs.git/commitdiff
(mac_compute_glyph_string_overhangs, XLoadQueryFont)
authorYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Tue, 26 Sep 2006 08:49:05 +0000 (08:49 +0000)
committerYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Tue, 26 Sep 2006 08:49:05 +0000 (08:49 +0000)
[USE_CG_DRAWING]: Call mac_prepare_for_quickdraw before QDTextBounds.

src/ChangeLog
src/macterm.c

index 8d1bb3cf193f1b9c0799135b19494844f179f8a7..147d353388698933839ea1fa559dcc2cb699d39d 100644 (file)
@@ -1,3 +1,8 @@
+2006-09-26  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
+
+       * macterm.c (mac_compute_glyph_string_overhangs, XLoadQueryFont)
+       [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw before QDTextBounds.
+
 2006-09-26  Kenichi Handa  <handa@m17n.org>
 
        * keymap.c (Fsingle_key_description): For an invalid char, return
index 6f9e6273cb7d0b0acbe59f9fe886e7688ed0c5f7..72812d3830440a6a6ff8e09c204dba3d7335cb5b 100644 (file)
@@ -2634,6 +2634,11 @@ mac_compute_glyph_string_overhangs (s)
       Rect r;
       MacFontStruct *font = s->font;
 
+#if USE_CG_DRAWING
+      mac_prepare_for_quickdraw (s->f);
+#endif
+      SetPortWindowPort (FRAME_MAC_WINDOW (s->f));
+
       TextFont (font->mac_fontnum);
       TextSize (font->mac_fontsize);
       TextFace (font->mac_fontface);
@@ -8001,6 +8006,9 @@ XLoadQueryFont (Display *dpy, char *fontname)
       FontInfo the_fontinfo;
       int is_two_byte_font;
 
+#if USE_CG_DRAWING
+      mac_prepare_for_quickdraw (NULL);
+#endif
       /* Save the current font number used.  */
       GetPort (&port);
 #if TARGET_API_MAC_CARBON