mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-14 10:43:50 +00:00
Don't convert text fields to bold default system font.
This commit is contained in:
1 parent
cd4a70ea78
commit
cd6b6afc65
2 files changed
+8
-2
No files matched your search
@@ -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)
|
||||
|
||||
@@ -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]];
|
||||
|
||||
Reference in new issue
Block a user