• 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: NSString drawInRect:withAttributes: clips descenders
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSString drawInRect:withAttributes: clips descenders


  • Subject: Re: NSString drawInRect:withAttributes: clips descenders
  • From: Ondra Cada <email@hidden>
  • Date: Wed, 3 May 2006 20:05:23 +0200

Brant,

On 3.5.2006, at 19:55, Brant Sears wrote:

Hi. I'm trying to use the method drawInRect: withAttributes: method of NSString to draw a single character at a time into an NSImage. The problem that I am having is that descenders are being clipped. So, for example, the character j is being chopped where it descends below the baseline. This affects other descenders like p, q, y, etc.

Looks like the text just don't fit. Try a smaller font without changing anything other; I am pretty positive it would stop clipping descenders (if it does indeed, you can fix the code appropriately).


If it clips descenders regardless the font size (in unchanged view, rect, etc.), now that would be strange.
---
Ondra Čada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc



_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: NSString drawInRect:withAttributes: clips descenders
      • From: Brant Sears <email@hidden>
References: 
 >NSString drawInRect:withAttributes: clips descenders (From: Brant Sears <email@hidden>)

  • Prev by Date: NSString drawInRect:withAttributes: clips descenders
  • Next by Date: Re: Efficiently getting characters
  • Previous by thread: NSString drawInRect:withAttributes: clips descenders
  • Next by thread: Re: NSString drawInRect:withAttributes: clips descenders
  • Index(es):
    • Date
    • Thread