Don't convert text fields to bold default system font.

This commit is contained in:
Ross Boucher committed 2010-04-05 10:38:20 -07:00
1 parent cd4a70ea78
commit cd6b6afc65
2 files changed
+8 -2

No files matched your search

+4 -1
View File
@@ -32,7 +32,10 @@
size = [aCoder decodeDoubleForKey:@"NSSize"];
if ((fontName === "LucidaGrande" || fontName === "LucidaGrande-Bold") && size === 13)
return [self _initWithName:"Arial" size:12.0 bold:YES];
{
CPLog.debug("Converting default IB font: <"+fontName+", "+size+"> to default Aristo font: <Arial, 12>");
return [CPFont boldSystemFontOfSize:12.0];
}
// FIXME: Is this alwasy true?
if (fontName.indexOf("-Bold") === fontName.length - "-Bold".length)
+4 -1
View File
@@ -24,7 +24,7 @@
@import "NSControl.j"
@import "NSCell.j"
@import <AppKit/CPFont.j>
@implementation CPTextField (NSCoding)
@@ -36,6 +36,9 @@
{
var cell = [aCoder decodeObjectForKey:@"NSCell"];
if ([[cell font] isEqual:[CPFont boldSystemFontOfSize:12.0]])
[self setFont:[CPFont systemFontOfSize:12.0]];
[self sendActionOn:CPKeyUpMask|CPKeyDownMask];
[self setEditable:[cell isEditable]];