Changeset 611


Ignore:
Timestamp:
Jul 16, 2006, 4:29:35 PM (16 years ago)
Author:
livings124
Message:

Use actual bold font.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/BarButton.m

    r610 r611  
    112112                [NSFont fontWithName: @"Helvetica" size: 12.0], NSFontAttributeName, nil];
    113113   
     114    NSFont * boldFont = [[NSFontManager sharedFontManager] convertFont:
     115                            [NSFont fontWithName: @"Helvetica" size: 12.0] toHaveTrait: NSBoldFontMask];
     116   
    114117    NSDictionary * highlightedAttributes = [[NSDictionary alloc] initWithObjectsAndKeys:
    115118                [NSColor whiteColor], NSForegroundColorAttributeName,
    116                 [NSFont fontWithName: @"Helvetica Bold" size: 12.0], NSFontAttributeName, nil];
     119                boldFont, NSFontAttributeName, nil];
    117120   
    118121    NSSize textSizeNormal = [text sizeWithAttributes: normalAttributes],
Note: See TracChangeset for help on using the changeset viewer.