Re: NSString drawInRect:withAttributes: clips descenders
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