Re: drawAtPoint rendering thin, light text?
Re: drawAtPoint rendering thin, light text?
- Subject: Re: drawAtPoint rendering thin, light text?
- From: Evan Olcott <email@hidden>
- Date: Thu, 30 Oct 2003 14:23:38 -0600
on 10/30/03 12:14 PM, Jvrn Salewski at email@hidden wrote:
>
I could imagine that it has nothing to do with the attributes, but rather
>
with the location where you' re drawing.
>
>
Maybe your x and y coordinates of your NSPoint are uneven numbers. In this
>
case the drawing could fall in between the actual screen pixels and causing
>
unwanted 'antialiasing.' If so, you could try to round the NSPoint
>
coordinates to the nearest decimal.
>
>
Just a thought.
>
>
Cheers,
>
>
JS
I've tried all sorts of combinations of x + 0.5 and x + 0.25 and round(x),
all to similar result. Not exactly the same, but still pretty bad
comparatively.
Further research has shown: just draing it inside an allocated NSImage then
drawing the result back is making the problem text. If I [NSString
drawAtpoint] right in the view itself, the text looks beautiful.
NOW - what would an NSImage be doing to my text?
-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.