Fixed the problem in NSFont where a badly named font will leak.
authorKent Sutherland <ksuther@ithinksw.com>
Thu, 7 Oct 2004 02:20:20 +0000 (02:20 +0000)
committerKent Sutherland <ksuther@ithinksw.com>
Thu, 7 Oct 2004 02:20:20 +0000 (02:20 +0000)
ITIconAndTextStatusWindow.m - Lucida Grande Bold changed to LucidaGrande-Bold
ITStatusItem.m - Lucida Grande changed to LucidaGrande
Controller.m - Lucida Grande Bold changed to LucidaGrande-Bold

ITIconAndTextStatusWindow.m
ITStatusItem.m
Showcase/Controller.m

index afe0066..5b03fab 100755 (executable)
         divisor = MINI_DIVISOR;
     }
 
-    font = [NSFont fontWithName:@"Lucida Grande Bold" size:(baseFontSize / divisor)];
+    font = [NSFont fontWithName:@"LucidaGrande-Bold" size:(baseFontSize / divisor)];
     attr = [NSDictionary dictionaryWithObject:font forKey:NSFontAttributeName];
     
 //      Iterate over each line to get text width and height
index 31ff2e3..bf1d18f 100755 (executable)
@@ -90,7 +90,7 @@
 /*************************************************************************/
 
 - (void)setSmallTitle:(NSString*)title {
-    NSAttributedString *attrTitle = [[[NSAttributedString alloc] initWithString:title attributes:[NSDictionary dictionaryWithObject:[NSFont fontWithName:@"Lucida Grande" size:12.0] forKey:NSFontAttributeName]] autorelease];
+    NSAttributedString *attrTitle = [[[NSAttributedString alloc] initWithString:title attributes:[NSDictionary dictionaryWithObject:[NSFont fontWithName:@"LucidaGrande" size:12.0] forKey:NSFontAttributeName]] autorelease];
     [self setAttributedTitle:attrTitle];
 }
 
index ac02c52..9f9c1f6 100755 (executable)
@@ -32,7 +32,7 @@
 {
     [self createStatusItem];
     [button setBezelStyle:1001];
-    [button setFont:[NSFont fontWithName:@"Lucida Grande Bold" size:14]];
+    [button setFont:[NSFont fontWithName:@"LucidaGrande-Bold" size:14]];
     [button setTitle:@"Launch Manually"];
     [button sizeToFit];
     [button setFrameSize:NSMakeSize([button frame].size.width + 8, 24)];