We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6f33ec commit 9b7f93aCopy full SHA for 9b7f93a
Libraries/gnustep/back-art/Source/art/FTFontEnumerator.m
@@ -401,6 +401,11 @@ + (FTFaceInfo *)fontWithName:(NSString *)name
401
FTFaceInfo *face;
402
403
face = [fcfg_all_fonts objectForKey:name];
404
+ if (!face) {
405
+ // Try "Family-Typeface" pattern instead of "Typeface Pattern"
406
+ name = [name stringByReplacingOccurrencesOfString:@" " withString:@"-"];
407
+ face = [fcfg_all_fonts objectForKey:name];
408
+ }
409
if (!face) {
410
NSLog(@"Font not found %@", name);
411
}
0 commit comments