• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: drawAtPoint rendering thin, light text?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: drawAtPoint rendering thin, light text?
      • From: "Alastair J.Houghton" <email@hidden>
    • Re: drawAtPoint rendering thin, light text?
      • From: John Randolph <email@hidden>
  • Prev by Date: Re: PB under Panther
  • Next by Date: Re: drawAtPoint rendering thin, light text?
  • Previous by thread: Re: drawAtPoint rendering thin, light text?
  • Next by thread: Re: drawAtPoint rendering thin, light text?
  • Index(es):
    • Date
    • Thread