Just in case anyone finds this thread and wonders what the solution was, here it is:
- (void) updateEditorHighlighting: (NSString*)expression { NSTextView * editor = (NSTextView*)[self currentEditor]; [self updateExpressionValue:self.stringValue into:editor.textStorage]; // This fixes a strange issue where the vertical alignment of the font is a bit strange during editing. NSMutableParagraphStyle * paragraphStyle = [[NSMutableParagraphStyle alloc] init]; paragraphStyle.maximumLineHeight = [editor.layoutManager defaultLineHeightForFont:self.font]; [editor.textStorage addAttribute:NSParagraphStyleAttributeName value:paragraphStyle range:NSMakeRange(0, editor.textStorage.length)]; } On 13 October 2016 at 13:26, Samuel Williams <space.ship.travel...@gmail.com > wrote: > That's crazy, how can Apple make a system font which breaks existing apps!? > > On 13 October 2016 at 12:19, Steve Mills <sjmi...@mac.com> wrote: > >> > On Oct 12, 2016, at 16:55, Samuel Williams < >> space.ship.travel...@gmail.com> wrote: >> > >> > It's the standard font "San Francisco" from Apple. That's odd that it >> would >> > be buggy like that. I'll try what you suggested. >> >> Not surprising. The new San Francisco is pretty bad. >> >> Steve via iPad >> >> >> _______________________________________________ >> >> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) >> >> Please do not post admin requests or moderator comments to the list. >> Contact the moderators at cocoa-dev-admins(at)lists.apple.com >> >> Help/Unsubscribe/Update your Subscription: >> https://lists.apple.com/mailman/options/cocoa-dev/space. >> ship.traveller%40gmail.com >> >> This email sent to space.ship.travel...@gmail.com > > > _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com