Fall back to basic ligatures(1) not full(2).

This commit is contained in:
René Köcher
2015-11-08 11:53:46 +01:00
parent 91152d1fca
commit 201c6b74e4
+2 -1
View File
@@ -1045,8 +1045,9 @@ attributedStringForString(NSString *string, const CTFontRef font, BOOL useLigatu
NSDictionary *attrs = [NSDictionary dictionaryWithObjectsAndKeys:
(id)font, kCTFontAttributeName,
// 2 - full ligatures including rare
// 1 - basic ligatures
// 0 - no ligatures
[NSNumber numberWithInteger: (useLigatures) ? 2 : 0], kCTLigatureAttributeName,
[NSNumber numberWithInteger: (useLigatures) ? 1 : 0], kCTLigatureAttributeName,
nil
];