aboutsummaryrefslogtreecommitdiffstats
path: root/src/macterm.c
diff options
context:
space:
mode:
authorKaroly Lorentey2006-12-03 12:15:03 +0000
committerKaroly Lorentey2006-12-03 12:15:03 +0000
commit14bcc1e098410087a837313e2fc822319ff2e8ca (patch)
treee468aebbb8d84438d81eb08bf6b77bfeaf664ea7 /src/macterm.c
parent5665a02fd1d009506f246d5f77896e3995127954 (diff)
parent704ec54b3f2a40026ea7835b76e040c7335a56c1 (diff)
downloademacs-14bcc1e098410087a837313e2fc822319ff2e8ca.tar.gz
emacs-14bcc1e098410087a837313e2fc822319ff2e8ca.zip
Merged from emacs@sv.gnu.org.
Patches applied: * emacs@sv.gnu.org/emacs--devo--0--patch-474 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-475 Merge from gnus--rel--5.10 * emacs@sv.gnu.org/emacs--devo--0--patch-476 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-477 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-478 Update from CVS * emacs@sv.gnu.org/gnus--rel--5.10--patch-150 Update from CVS * emacs@sv.gnu.org/gnus--rel--5.10--patch-151 Update from CVS * emacs@sv.gnu.org/gnus--rel--5.10--patch-152 Update from CVS git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-584
Diffstat (limited to 'src/macterm.c')
-rw-r--r--src/macterm.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/macterm.c b/src/macterm.c
index 6902ac72304..d4ce2a1b298 100644
--- a/src/macterm.c
+++ b/src/macterm.c
@@ -1198,7 +1198,12 @@ mac_query_char_extents (style, c,
1198 err1 = ATSUGetGlyphInfo (text_layout, kATSUFromTextBeginning, 1198 err1 = ATSUGetGlyphInfo (text_layout, kATSUFromTextBeginning,
1199 kATSUToTextEnd, &count, 1199 kATSUToTextEnd, &count,
1200 &glyph_info_array); 1200 &glyph_info_array);
1201 if (err1 == noErr) 1201 if (err1 == noErr
1202 /* Make sure that we don't have to make layout
1203 adjustments. */
1204 && glyph_info_array.glyphs[0].deltaY == 0.0f
1205 && glyph_info_array.glyphs[0].idealX == 0.0f
1206 && glyph_info_array.glyphs[0].screenX == 0)
1202 { 1207 {
1203 xassert (glyph_info_array.glyphs[0].glyphID); 1208 xassert (glyph_info_array.glyphs[0].glyphID);
1204 *cg_glyph = glyph_info_array.glyphs[0].glyphID; 1209 *cg_glyph = glyph_info_array.glyphs[0].glyphID;
@@ -7963,7 +7968,8 @@ mac_load_query_font (f, fontname)
7963 NULL 7968 NULL
7964#endif 7969#endif
7965 ); 7970 );
7966 if (err != noErr) 7971 if (err != noErr
7972 || space_bounds->width <= 0 || FONT_HEIGHT (font) <= 0)
7967 { 7973 {
7968 mac_unload_font (&one_mac_display_info, font); 7974 mac_unload_font (&one_mac_display_info, font);
7969 return NULL; 7975 return NULL;