Mercurial > emacs
changeset 73133:7156654b0c06
(mac_compute_glyph_string_overhangs, XLoadQueryFont)
[USE_CG_DRAWING]: Call mac_prepare_for_quickdraw before QDTextBounds.
author | YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
---|---|
date | Tue, 26 Sep 2006 08:48:35 +0000 |
parents | 0f09890f4e36 |
children | b7b3deb46c6a |
files | src/macterm.c |
diffstat | 1 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/macterm.c Tue Sep 26 04:17:41 2006 +0000 +++ b/src/macterm.c Tue Sep 26 08:48:35 2006 +0000 @@ -2634,6 +2634,11 @@ 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 @@ 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