diff --git a/ChangeLog b/ChangeLog index 4677521..5f24604 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2021-08-18 Riccardo Mottola + + * Modules/Editors/ProjectCenter/PCEditor.m + Turn off ligatures, both when setting up the editor as well as when + loading a file. + 2021-08-18 Riccardo Mottola * PCInfoContronoller.m diff --git a/Modules/Editors/ProjectCenter/PCEditor.m b/Modules/Editors/ProjectCenter/PCEditor.m index add31b3..750612d 100644 --- a/Modules/Editors/ProjectCenter/PCEditor.m +++ b/Modules/Editors/ProjectCenter/PCEditor.m @@ -170,6 +170,7 @@ tSelCol, NSForegroundColorAttributeName, nil]; [ev setSelectedTextAttributes:selAttributes]; + [ev turnOffLigatures:self]; // Activate undo [ev setAllowsUndo: YES]; @@ -321,6 +322,8 @@ [attributes setObject:font forKey:NSFontAttributeName]; [attributes setObject:textBackground forKey:NSBackgroundColorAttributeName]; [attributes setObject:[prefs colorForKey:EditorForegroundColor defaultValue:textColor] forKey:NSForegroundColorAttributeName]; + [attributes setObject:[NSNumber numberWithInt: 0] // disable ligatures + forKey:NSLigatureAttributeName]; text = [NSString stringWithContentsOfFile:_path]; attributedString = [attributedString initWithString:text attributes:attributes];