[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master add0b69 06/13: Remove calls to deprecated setUsesSc
From: |
Philipp Stephani |
Subject: |
[Emacs-diffs] master add0b69 06/13: Remove calls to deprecated setUsesScreenFonts |
Date: |
Sun, 21 May 2017 15:51:47 -0400 (EDT) |
branch: master
commit add0b69445f65fe1792fe3ab5f8a8d35b997f728
Author: Philipp Stephani <address@hidden>
Commit: Philipp Stephani <address@hidden>
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.
---
src/macfont.m | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/src/macfont.m b/src/macfont.m
index b859eb4..dccb4e6 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
- [Emacs-diffs] master cf68bb4 02/13: Declare Nextstep unexec functions in lisp.h, (continued)
- [Emacs-diffs] master cf68bb4 02/13: Declare Nextstep unexec functions in lisp.h, Philipp Stephani, 2017/05/21
- [Emacs-diffs] master cc6db8b 05/13: Make a function static that isn't used outside this file, Philipp Stephani, 2017/05/21
- [Emacs-diffs] master 0446a5a 04/13: Use NSCharacterCollection instead of CTCharacterCollection, Philipp Stephani, 2017/05/21
- [Emacs-diffs] master 6f1f882 13/13: Avoid uninitialized read, Philipp Stephani, 2017/05/21
- [Emacs-diffs] master f04e3d6 07/13: Remove trailing semicolons in method definitions, Philipp Stephani, 2017/05/21
- [Emacs-diffs] master 2d8215a 10/13: Remove unused automatic variables, Philipp Stephani, 2017/05/21
- [Emacs-diffs] master 74d4304 09/13: Nextstep: Replace deprecated enumerators, Philipp Stephani, 2017/05/21
- [Emacs-diffs] master 762be77 08/13: Nextstep: remove some deprecated method calls, Philipp Stephani, 2017/05/21
- [Emacs-diffs] master 6dd94bc 11/13: Clean up code around 'ns-list-services', Philipp Stephani, 2017/05/21
- [Emacs-diffs] master d79a4ea 03/13: Remove unused function print_regions, Philipp Stephani, 2017/05/21
- [Emacs-diffs] master add0b69 06/13: Remove calls to deprecated setUsesScreenFonts,
Philipp Stephani <=
- [Emacs-diffs] master 84b28ec 01/13: Nextstep: Use instancetype explicit return type, Philipp Stephani, 2017/05/21
- [Emacs-diffs] master fa389f5 12/13: Fix call of registerServicesMenuSendTypes, Philipp Stephani, 2017/05/21