bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSCell font


From: Stefan Urbanek
Subject: NSCell font
Date: Wed, 06 Mar 2002 19:10:09 +0100

Hi,

NSCell is using user font, but I think, it should use system font instead
(also according to Cocoa docs). User font is to be used by documents (text
views).

Patch attached.

Stefan
*** NSCell.old.m        Wed Mar  6 18:56:03 2002
--- NSCell.m    Wed Mar  6 18:56:17 2002
***************
*** 127,133 ****
    _cell.type = NSImageCellType;
    _cell_image = RETAIN (anImage);
    _cell.image_position = NSImageOnly;
!   _font = RETAIN ([fontClass userFontOfSize: 0]);
  
    // Implicitly set by allocation:
    //
--- 127,133 ----
    _cell.type = NSImageCellType;
    _cell_image = RETAIN (anImage);
    _cell.image_position = NSImageOnly;
!   _font = RETAIN ([fontClass systemFontOfSize: 0]);
  
    // Implicitly set by allocation:
    //
***************
*** 156,162 ****
  {
    _cell.type = NSTextCellType;
    _contents = RETAIN (aString);
!   _font = RETAIN ([fontClass userFontOfSize: 0]);
  
    // Implicitly set by allocation:
    //
--- 156,162 ----
  {
    _cell.type = NSTextCellType;
    _contents = RETAIN (aString);
!   _font = RETAIN ([fontClass systemFontOfSize: 0]);
  
    // Implicitly set by allocation:
    //
***************
*** 537,543 ****
          ASSIGN (_contents, @"title");
          _cell.contents_is_attributed_string = NO;
          /* Doc says we have to reset the font too. */
!         ASSIGN (_font, [fontClass userFontOfSize: 0]);
          break;
        }
        case NSImageCellType:
--- 537,543 ----
          ASSIGN (_contents, @"title");
          _cell.contents_is_attributed_string = NO;
          /* Doc says we have to reset the font too. */
!         ASSIGN (_font, [fontClass systemFontOfSize: 0]);
          break;
        }
        case NSImageCellType:

reply via email to

[Prev in Thread] Current Thread [Next in Thread]