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.
This commit is contained in:
Philipp Stephani 2017-05-20 16:44:40 +02:00
parent cc6db8b6aa
commit add0b69445

View file

@ -284,7 +284,6 @@ static void mac_font_get_glyphs_for_variants (CFDataRef, UTF32Char,
[textStorage setFont:nsFont];
[textContainer setLineFragmentPadding:0];
[layoutManager setUsesScreenFonts:YES];
[layoutManager addTextContainer:textContainer];
[textContainer release];
@ -318,8 +317,7 @@ static void mac_font_get_glyphs_for_variants (CFDataRef, UTF32Char,
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 @@ static void mac_font_get_glyphs_for_variants (CFDataRef, UTF32Char,
initWithString:@" "] autorelease])];
[textStorage setFont:font];
[textContainer setLineFragmentPadding:0];
[layoutManager setUsesScreenFonts:screen_font_p];
[layoutManager addTextContainer:textContainer];
[textContainer release];
@ -587,7 +584,7 @@ static void mac_font_get_glyphs_for_variants (CFDataRef, UTF32Char,
{
return mac_font_shape_1 ([(NSFont *)font printerFont],
(NSString *) string,
glyph_layouts, glyph_len, YES);
glyph_layouts, glyph_len);
}
static CGColorRef