drawAtPoint rendering thin, light text?
drawAtPoint rendering thin, light text?
- Subject: drawAtPoint rendering thin, light text?
- From: Ev <email@hidden>
- Date: Thu, 30 Oct 2003 10:40:45 -0600
I've noticed a difference in my string drawing from almost all other
text drawing in the OS...
Calling [NSString drawAtPoint: attributes:] with these attributes
(declared earlier):
rulerTextAttributes = [[NSDictionary alloc] initWithObjectsAndKeys:
[NSFont fontWithName:@"Lucida Grande" size:9.],
NSFontAttributeName,
[NSColor darkGrayColor], NSForegroundColorAttributeName,
nil];
...makes the text look very thin and badly rendered, compared to the
same attributes when the font is drawn in TextEdit
check out this small screen shot:
http://www.triplo.com/ev/drawAtPointIssue.gif
On the top and behind is TextEdit's interpretation of darkGray Lucida
Grande 9
On the bottom (in the ruler-type view) is my app.
It's drawn into an [NSImage alloc]... along with some lines drawn via
CGContext calls... then drawn where it needs to be by an [NSImage
drawAtPoint] call... (yes, i've made sure the NSRects are identical, so
in theory no scaling is going on at all)
btw - i've also noticed that I have to do the [NSString drawAtPoint]
calls first, otherwise all my strokes created with the CGContext calls
get erased after any [NSString drawAtPoint] calls. Maybe the
conflicting contexts (no pun intended) is messing with this?
Anybody have any idea why this visual difference?
-ev
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.