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:
nico 2002-03-07 10:41:12 +00:00
parent 01f49716d8
commit 0561761693

View file

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