Disable font scaling code without effect.
This commit is contained in:
parent
0a94b62b06
commit
056b1f569d
1 changed files with 8 additions and 0 deletions
|
@ -24,7 +24,14 @@
|
|||
- (void)awakeFromNib {
|
||||
[[self menu] setAutoenablesItems:NO];
|
||||
|
||||
#if 0
|
||||
// Configure bindings to scale font size and row height
|
||||
// NOTE: This currently seems to be without effect.
|
||||
// NSFont value overwritten by
|
||||
// -[NSDisplayFontBinder _adjustFontOfObject:mode:triggerRedisplay:compareDirectly:toFont:]
|
||||
// called by
|
||||
// -[NSWindow makeKeyAndOrderFront:]
|
||||
|
||||
NSControlSize s = NSControlSizeSmall;
|
||||
NSFont *f = [NSFont systemFontOfSize:[NSFont systemFontSizeForControlSize:s]];
|
||||
// NSFont *bf = [[NSFontManager sharedFontManager] convertFont:f toHaveTrait:NSBoldFontMask];
|
||||
|
@ -33,6 +40,7 @@
|
|||
[[col dataCell] setControlSize:s];
|
||||
[[col dataCell] setFont:f];
|
||||
}
|
||||
#endif
|
||||
|
||||
// Set up formatters
|
||||
NSFormatter *secondsFormatter = [[SecondsFormatter alloc] init];
|
||||
|
|
Loading…
Reference in a new issue