Revision: 28212
          http://sourceforge.net/p/bibdesk/svn/28212
Author:   hofman
Date:     2023-04-09 14:41:29 +0000 (Sun, 09 Apr 2023)
Log Message:
-----------
Add condensed to font name when constructing

Modified Paths:
--------------
    trunk/bibdesk/NSFont_BDSKExtensions.m
    trunk/bibdesk/de.lproj/Localizable.strings
    trunk/bibdesk/en.lproj/Localizable.strings
    trunk/bibdesk/fr.lproj/Localizable.strings

Modified: trunk/bibdesk/NSFont_BDSKExtensions.m
===================================================================
--- trunk/bibdesk/NSFont_BDSKExtensions.m       2023-04-09 14:14:23 UTC (rev 
28211)
+++ trunk/bibdesk/NSFont_BDSKExtensions.m       2023-04-09 14:41:29 UTC (rev 
28212)
@@ -167,12 +167,16 @@
             for (systemFamily in systemFamilies) {
                 for (NSArray *fontInfo in [fm 
availableMembersOfFontFamily:systemFamily]) {
                     NSString *fontName = [fontInfo objectAtIndex:0];
-                    BOOL isItalic = 0 != ([[fontInfo objectAtIndex:3] 
integerValue] & NSItalicFontMask);
                     NSMutableArray *names = [NSMutableArray 
arrayWithObjects:baseFontName, nil];
                     NSString *name = [fm localizedNameForFamily:systemFamily 
face:[fontInfo objectAtIndex:1]];
                     if (name) {
                         [names addObject:name];
                     } else {
+                        NSInteger traits = [[fontInfo objectAtIndex:3] 
integerValue];
+                        BOOL isItalic = 0 != (traits & NSItalicFontMask);
+                        BOOL isCondensed = 0 != (traits & NSCondensedFontMask);
+                        if (isCondensed)
+                            [names addObject:NSLocalizedString(@"Condensed", 
@"font typeface")];
                         switch ([[fontInfo objectAtIndex:2] integerValue]) {
                             case 1: [names 
addObject:NSLocalizedString(@"UltraLight", @"font typeface")]; break;
                             case 2: [names 
addObject:NSLocalizedString(@"Thin", @"font typeface")]; break;

Modified: trunk/bibdesk/de.lproj/Localizable.strings
===================================================================
(Binary files differ)

Modified: trunk/bibdesk/en.lproj/Localizable.strings
===================================================================
(Binary files differ)

Modified: trunk/bibdesk/fr.lproj/Localizable.strings
===================================================================
(Binary files differ)

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to