Ticket #21407: patch-AKTableView-defaultFontSize.patch
File patch-AKTableView-defaultFontSize.patch, 637 bytes (added by mklein-de (Michael Klein), 15 years ago) |
---|
-
CustomViews/AKTableView.m
old new 22 22 int fontSize = 23 23 [AKPrefUtils intValueForPref:AKListFontSizePrefName]; 24 24 NSFont *font = [NSFont fontWithName:fontName size:fontSize]; 25 int newRowHeight = round([font defaultLineHeightForFont] + 1.0); 25 NSLayoutManager * lm = [[NSLayoutManager alloc] init]; 26 int newRowHeight = round([lm defaultLineHeightForFont:font] + 1.0); 27 [lm release]; 26 28 27 29 [[[[self tableColumns] objectAtIndex:0] dataCell] setFont:font]; 28 30 [self setRowHeight:newRowHeight];