[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 06/13] Remove calls to deprecated setUsesScreenFonts
From: |
Philipp Stephani |
Subject: |
[PATCH 06/13] Remove calls to deprecated setUsesScreenFonts |
Date: |
Sat, 20 May 2017 16:58:34 +0200 |
* 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.
---
src/macfont.m | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/src/macfont.m b/src/macfont.m
index b859eb4378..dccb4e6fd0 100644
--- a/src/macfont.m
+++ b/src/macfont.m
@@ -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
--
2.13.0
- [PATCH 01/13] Nextstep: Use instancetype explicit return type, Philipp Stephani, 2017/05/20
- [PATCH 02/13] Declare Nextstep unexec functions in lisp.h, Philipp Stephani, 2017/05/20
- [PATCH 05/13] Make a function static that isn't used outside this file, Philipp Stephani, 2017/05/20
- [PATCH 04/13] Use NSCharacterCollection instead of CTCharacterCollection, Philipp Stephani, 2017/05/20
- [PATCH 03/13] Remove unused function print_regions, Philipp Stephani, 2017/05/20
- [PATCH 07/13] Remove trailing semicolons in method definitions, Philipp Stephani, 2017/05/20
- [PATCH 09/13] Nextstep: Replace deprecated enumerators, Philipp Stephani, 2017/05/20
- [PATCH 08/13] Nextstep: remove some deprecated method calls, Philipp Stephani, 2017/05/20
- [PATCH 06/13] Remove calls to deprecated setUsesScreenFonts,
Philipp Stephani <=
- [PATCH 10/13] Remove unused automatic variables, Philipp Stephani, 2017/05/20
- [PATCH 11/13] Clean up code around 'ns-list-services', Philipp Stephani, 2017/05/20
- [PATCH 12/13] Fix call of registerServicesMenuSendTypes, Philipp Stephani, 2017/05/20
- [PATCH 13/13] Avoid uninitialized read, Philipp Stephani, 2017/05/20
- Re: [PATCH 01/13] Nextstep: Use instancetype explicit return type, Paul Eggert, 2017/05/20
- Re: [PATCH 01/13] Nextstep: Use instancetype explicit return type, Paul Eggert, 2017/05/21