Disable font scaling code without effect.

This commit is contained in:
Jan Weiß 2021-05-04 15:41:10 +02:00
parent 0a94b62b06
commit 056b1f569d

View file

@ -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];