Re: NSString drawInRect:withAttributes: clips descenders
Re: NSString drawInRect:withAttributes: clips descenders
- Subject: Re: NSString drawInRect:withAttributes: clips descenders
- From: Brant Sears <email@hidden>
- Date: Wed, 3 May 2006 14:58:10 -0400
That is the problem. When I try to make the font smaller, it looks
like crap, so I made it 10 point. I think the reality is just that I
need to make the rectangle bigger.
Thanks.
On May 3, 2006, at 2:05 PM, Ondra Cada wrote:
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