From 475a1064c9d3637e7fae211d7a18d411c1178af0 Mon Sep 17 00:00:00 2001 From: Kent Sutherland Date: Thu, 7 Oct 2004 02:20:20 +0000 Subject: [PATCH] Fixed the problem in NSFont where a badly named font will leak. 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 | 2 +- ITStatusItem.m | 2 +- Showcase/Controller.m | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ITIconAndTextStatusWindow.m b/ITIconAndTextStatusWindow.m index afe0066..5b03fab 100755 --- a/ITIconAndTextStatusWindow.m +++ b/ITIconAndTextStatusWindow.m @@ -183,7 +183,7 @@ 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 diff --git a/ITStatusItem.m b/ITStatusItem.m index 31ff2e3..bf1d18f 100755 --- a/ITStatusItem.m +++ b/ITStatusItem.m @@ -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]; } diff --git a/Showcase/Controller.m b/Showcase/Controller.m index ac02c52..9f9c1f6 100755 --- a/Showcase/Controller.m +++ b/Showcase/Controller.m @@ -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)]; -- 2.20.1