From: Philipp Stephani Date: Sat, 20 May 2017 14:44:40 +0000 (+0200) Subject: Remove calls to deprecated setUsesScreenFonts X-Git-Tag: emacs-26.0.90~521^2~319 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=add0b69445f65fe1792fe3ab5f8a8d35b997f728;p=emacs.git Remove calls to deprecated setUsesScreenFonts * src/macfont.m (mac_screen_font_get_metrics): Don't call setUsesScreenFonts. (mac_font_shape_1): Remove screen_font_p parameter. (mac_screen_font_shape): Remove screen_font_p argument. --- diff --git a/src/macfont.m b/src/macfont.m index b859eb43787..dccb4e6fd02 100644 --- a/src/macfont.m +++ b/src/macfont.m @@ -284,7 +284,6 @@ mac_screen_font_get_metrics (ScreenFontRef font, CGFloat *ascent, [textStorage setFont:nsFont]; [textContainer setLineFragmentPadding:0]; - [layoutManager setUsesScreenFonts:YES]; [layoutManager addTextContainer:textContainer]; [textContainer release]; @@ -318,8 +317,7 @@ mac_screen_font_get_metrics (ScreenFontRef font, CGFloat *ascent, static CFIndex mac_font_shape_1 (NSFont *font, NSString *string, - struct mac_glyph_layout *glyph_layouts, CFIndex glyph_len, - BOOL screen_font_p) + struct mac_glyph_layout *glyph_layouts, CFIndex glyph_len) { NSUInteger i; CFIndex result = 0; @@ -339,7 +337,6 @@ mac_font_shape_1 (NSFont *font, NSString *string, initWithString:@" "] autorelease])]; [textStorage setFont:font]; [textContainer setLineFragmentPadding:0]; - [layoutManager setUsesScreenFonts:screen_font_p]; [layoutManager addTextContainer:textContainer]; [textContainer release]; @@ -587,7 +584,7 @@ mac_screen_font_shape (ScreenFontRef font, CFStringRef string, { return mac_font_shape_1 ([(NSFont *)font printerFont], (NSString *) string, - glyph_layouts, glyph_len, YES); + glyph_layouts, glyph_len); } static CGColorRef