• 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: Jörn Salewski <email@hidden>
  • Date: Thu, 30 Oct 2003 19:14:06 +0100

am 30.10.2003 17:40 Uhr schrieb Ev unter email@hidden:

> 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

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
_______________________________________________
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.

References: 
 >drawAtPoint rendering thin, light text? (From: Ev <email@hidden>)

  • Prev by Date: Can anyone tell me what these errors mean? (PDF files attached)
  • Next by Date: Accepting a drag op without returning from acceptDrop Hi, I'm trying to find a way to reply to receiving a drop on my NSTableView (in the acceptDrop delegate method) without having to return from the method itself. Normally you return "YES" or "NO" but my app has to wait for a user response and needs to tell the drag sender that the drag has been accepted before returning. Nothing found in the documentation as yet, is there some trick to make this happen? Without it the drag eventually times out and the drag icon slides back to the source. Regards, Tim.
  • Previous by thread: drawAtPoint rendering thin, light text?
  • Next by thread: Re: drawAtPoint rendering thin, light text?
  • Index(es):
    • Date
    • Thread