raw text with attributes

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3860 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
richard 1999-03-05 16:40:39 +00:00
parent db56ad4a9d
commit cdf924b7d7
2 changed files with 8 additions and 4 deletions

View file

@ -552,6 +552,7 @@
NSFont *font;
float titleWidth;
float titleHeight;
NSDictionary *dict;
if (!title)
return;
@ -594,9 +595,11 @@
}
}
[font set];
[textColor set];
[title drawInRect: cellFrame withAttributes: nil];
dict = [NSDictionary dictionaryWithObjectsAndKeys:
font, NSFontAttributeName,
textColor, NSForegroundColorAttributeName,
nil];
[title drawInRect: cellFrame withAttributes: dict];
}
// Draw image centered in frame.