From 44960e8d0f07ad02437a0a68ef89022cf4d4e7f2 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Fri, 14 Jan 2011 09:27:12 -0500 Subject: [PATCH] Use the Menlo font if possible, also switch to 10pt --- Source/BSLineNumberRulerView.mm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Source/BSLineNumberRulerView.mm b/Source/BSLineNumberRulerView.mm index d4b102a..33c5f5c 100644 --- a/Source/BSLineNumberRulerView.mm +++ b/Source/BSLineNumberRulerView.mm @@ -233,8 +233,11 @@ const CGFloat kRulerRightPadding = 2.5; */ - (NSDictionary*)fontAttributes { + NSFont* font = [NSFont fontWithName:@"Menlo" size:10.0]; + if (!font) + font = [NSFont fontWithName:@"Monaco" size:10.0]; return [NSDictionary dictionaryWithObjectsAndKeys: - [NSFont fontWithName:@"Monaco" size:9.0], NSFontAttributeName, + font, NSFontAttributeName, [NSColor grayColor], NSForegroundColorAttributeName, nil ]; -- 2.43.5