From b701d1a40b1fecb3cdc2078683439f738f90d9ea Mon Sep 17 00:00:00 2001 From: Riccardo Mottola Date: Thu, 19 Aug 2021 14:57:24 +0200 Subject: [PATCH] also keep ligatures off when reverting --- Modules/Editors/ProjectCenter/PCEditor.m | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Modules/Editors/ProjectCenter/PCEditor.m b/Modules/Editors/ProjectCenter/PCEditor.m index 750612d..3732c78 100644 --- a/Modules/Editors/ProjectCenter/PCEditor.m +++ b/Modules/Editors/ProjectCenter/PCEditor.m @@ -766,7 +766,11 @@ // This is temporary ft = [NSFont userFixedPitchFontOfSize:0.0]; - at = [NSDictionary dictionaryWithObject:ft forKey:NSFontAttributeName]; + at = [NSDictionary dictionaryWithObjectsAndKeys: + ft, NSFontAttributeName, + [NSNumber numberWithInt: 0], NSLigatureAttributeName, + nil]; + as = [[NSAttributedString alloc] initWithString:text attributes:at]; [self setIsEdited:NO];