Skip to content
Snippets Groups Projects
Commit b9afda66 authored by George Nachman's avatar George Nachman
Browse files

Allow disabling ligatures for FiraCode. Issue 5857

parent efef26d5
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -52,16 +52,7 @@
static NSSet *fontsWithDefaultLigatures;
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
fontsWithDefaultLigatures = [[NSSet setWithArray:@[ @"FiraCode-Bold",
@"FiraCode-Light",
@"FiraCode-Medium",
@"FiraCode-Regular",
@"FiraCode-Retina",
@"FuraCodeNerdFontCompleteMono---Bold",
@"FuraCodeNerdFontCompleteMono---Light",
@"FuraCodeNerdFontCompleteMono---Medium",
@"FuraCodeNerdFontCompleteMono---Regular",
@"FuraCodeNerdFontCompleteMono---Retina" ]] retain];
fontsWithDefaultLigatures = [[NSSet setWithArray:@[ ]] retain];
});
BOOL result = [fontsWithDefaultLigatures containsObject:self.fontName];
DLog(@"Default ligatures for '%@' is %@", self.fontName, @(result));
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment