Use the system font as default font, not the user font

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@13031 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Nicola Pero 2002-03-07 10:41:12 +00:00
parent 42789654de
commit cb43f1ecbe

View file

@ -127,7 +127,7 @@ static NSColor *shadowCol;
_cell.type = NSImageCellType;
_cell_image = RETAIN (anImage);
_cell.image_position = NSImageOnly;
_font = RETAIN ([fontClass userFontOfSize: 0]);
_font = RETAIN ([fontClass systemFontOfSize: 0]);
// Implicitly set by allocation:
//
@ -156,7 +156,7 @@ static NSColor *shadowCol;
{
_cell.type = NSTextCellType;
_contents = RETAIN (aString);
_font = RETAIN ([fontClass userFontOfSize: 0]);
_font = RETAIN ([fontClass systemFontOfSize: 0]);
// Implicitly set by allocation:
//
@ -537,7 +537,7 @@ static NSColor *shadowCol;
ASSIGN (_contents, @"title");
_cell.contents_is_attributed_string = NO;
/* Doc says we have to reset the font too. */
ASSIGN (_font, [fontClass userFontOfSize: 0]);
ASSIGN (_font, [fontClass systemFontOfSize: 0]);
break;
}
case NSImageCellType: