diff options
author | YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | 2006-09-26 08:48:35 +0000 |
---|---|---|
committer | YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | 2006-09-26 08:48:35 +0000 |
commit | a194d099402361a9fe4aaf4893b3370a15488e17 (patch) | |
tree | f6f53feebfefd444c43741c84a4416ee37e0255f /src/macterm.c | |
parent | 95f6221d8cb1a2b590e6fa2f81130dd780a4d33d (diff) | |
download | emacs-a194d099402361a9fe4aaf4893b3370a15488e17.tar.gz |
(mac_compute_glyph_string_overhangs, XLoadQueryFont)
[USE_CG_DRAWING]: Call mac_prepare_for_quickdraw before QDTextBounds.
Diffstat (limited to 'src/macterm.c')
-rw-r--r-- | src/macterm.c | 8 |
1 files changed, 8 insertions, 0 deletions
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) 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 |